Safe Haskell | Safe-Inferred |
---|
Constructor functions for Command
values.
Please consult the cited GDB documentation for the semantics of the individual commands.
- break_after :: Int -> Int -> Command
- break_commands :: Int -> [String] -> Command
- break_condition :: Int -> String -> Command
- break_delete :: [Int] -> Command
- break_disable :: [Int] -> Command
- break_enable :: [Int] -> Command
- break_info :: Int -> Command
- break_insert :: Bool -> Bool -> Bool -> Bool -> Bool -> Maybe String -> Maybe Int -> Maybe Int -> Location -> Command
- break_list :: Command
- break_passcount :: Int -> Int -> Command
- break_watch :: Bool -> Command
- exec_arguments :: [String] -> Command
- environment_cd :: String -> Command
- environment_directory :: Bool -> [String] -> Command
- environment_path :: Bool -> [String] -> Command
- environment_pwd :: Command
- thread_info :: Maybe Int -> Command
- thread_list_ids :: Command
- thread_select :: Int -> Command
- ada_task_info :: Maybe Int -> Command
- exec_continue :: Bool -> Either Bool Int -> Command
- exec_finish :: Bool -> Command
- exec_interrupt :: Either Bool Int -> Command
- exec_jump :: Location -> Command
- exec_next :: Command
- exec_next_instruction :: Bool -> Command
- exec_return :: Command
- exec_run :: Either Bool Int -> Command
- exec_step :: Command
- exec_step_instruction :: Bool -> Command
- exec_until :: Location -> Command
- stack_info_frame :: Command
- stack_info_depth :: Maybe Int -> Command
- stack_list_arguments :: PrintValues -> Maybe (Int, Int) -> Command
- stack_list_arguments' :: Int -> Maybe (Int, Int) -> Command
- stack_list_frames :: Maybe (Int, Int) -> Command
- stack_list_locals :: PrintValues -> Command
- stack_list_locals' :: Int -> Command
- stack_list_variables :: PrintValues -> Command
- stack_list_variables' :: Int -> Command
- stack_select_frame :: Int -> Command
- enable_pretty_printing :: Command
- var_create :: Maybe String -> FrameSelect -> String -> Command
- var_delete :: Bool -> String -> Command
- var_set_format :: String -> FormatSpec -> Command
- var_gdbShow_format :: String -> Command
- var_info_num_children :: String -> Command
- var_list_children :: Maybe PrintValues -> String -> Maybe (Int, Int) -> Command
- var_list_children' :: Int -> String -> Maybe (Int, Int) -> Command
- var_info_type :: Command
- var_info_expression :: String -> Command
- var_info_path_expressoin :: String -> Command
- var_gdbShow_attributes :: String -> Command
- var_evaluate_expression :: Maybe FormatSpec -> String -> Command
- var_assign :: String -> String -> Command
- var_update :: Maybe PrintValues -> Maybe String -> Command
- var_set_frozen :: String -> FrozenFlag -> Command
- var_set_update_range :: String -> Int -> Int -> Command
- var_set_visualizer :: String -> String -> Command
- data_disassemble :: Either (String, String) (String, Int, Maybe Int) -> DisassemblyMode -> Command
- data_evaluate_expression :: String -> Command
- data_list_changed_registers :: Command
- data_list_register_names :: [Int] -> Command
- data_list_register_values :: DataFormat -> [Int] -> Command
- data_read_memory :: Maybe Int -> String -> OutputFormat -> Int -> Int -> Int -> Maybe Char -> Command
- data_read_memory_bytes :: Maybe Int -> String -> Int -> Command
- data_write_memory_bytes :: String -> String -> Command
- trace_find :: TraceMode -> Command
- trace_define_variable :: String -> Maybe String -> Command
- trace_list_variables :: Command
- trace_save :: Bool -> String -> Command
- trace_start :: Command
- trace_status :: Command
- trace_stop :: Command
- symbol_list_lines :: String -> Command
- file_exec_and_symbols :: Maybe FilePath -> Command
- file_exec_file :: Maybe FilePath -> Command
- file_list_exec_source_file :: Command
- file_list_exec_source_files :: Command
- file_symbol_file :: Maybe FilePath -> Command
- target_attach :: Either Int FilePath -> Command
- target_detach :: Maybe Int -> Command
- target_disconnect :: Command
- target_download :: Command
- target_select :: Target -> Command
- target_file_put :: FilePath -> FilePath -> Command
- target_file_get :: FilePath -> FilePath -> Command
- target_file_delete :: FilePath -> Command
- gdb_exit :: Command
- gdb_set :: String -> Command
- gdb_gdbShow :: String -> Command
- gdb_version :: Command
- list_features :: Command
- list_target_features :: Command
- list_thread_groups :: Bool -> Maybe Int -> [Int] -> Command
- info_os :: Maybe String -> Command
- add_inferior :: Command
- interpreter_exec :: Interpreter -> Command -> Command
- inferior_tty_set :: String -> Command
- inferior_tty_gdbShow :: Command
- enable_timings :: Bool -> Command
- data Location
- positive_offset_location :: Int -> Location
- negative_offset_location :: Int -> Location
- file_line_location :: String -> Int -> Location
- function_location :: String -> Location
- function_label_location :: String -> String -> Location
- file_function_location :: String -> String -> Location
- label_location :: String -> Location
- plain_address_location :: String -> Location
- expr_address_location :: String -> Location
- func_address_location :: String -> Location
- file_func_address_location :: String -> String -> Location
- data PrintValues
- = NoValues
- | AllValues
- | SimpleValues
- data FrameSelect
- = FrameAddr String
- | CurrentFrame
- | Floating
- data FormatSpec
- = Binary
- | Decimal
- | Hexadecimal
- | Octal
- | Natural
- data FrozenFlag
- data DisassemblyMode = DisassemblyMode Bool Bool
- data DataFormat
- data OutputFormat
- data TraceMode
- = None
- | FrameNumber Int
- | TracepointNumber Int
- | PC String
- | PCInsideRange String String
- | PCOutsideRange String String
- | Line Location
- data Target
- data Medium
- data Interpreter
- cli_command :: String -> Command
- set_token :: Token -> Command -> Command
Commands
Breakpoint Commands
break_after :: Int -> Int -> CommandSource
break_commands :: Int -> [String] -> CommandSource
break_condition :: Int -> String -> CommandSource
break_delete :: [Int] -> CommandSource
break_disable :: [Int] -> CommandSource
break_enable :: [Int] -> CommandSource
break_info :: Int -> CommandSource
break_insert :: Bool -> Bool -> Bool -> Bool -> Bool -> Maybe String -> Maybe Int -> Maybe Int -> Location -> CommandSource
break_passcount :: Int -> Int -> CommandSource
break_watch :: Bool -> CommandSource
Program Context
exec_arguments :: [String] -> CommandSource
environment_directory :: Bool -> [String] -> CommandSource
environment_path :: Bool -> [String] -> CommandSource
Thread Commands
thread_info :: Maybe Int -> CommandSource
thread_select :: Int -> CommandSource
Ada Tasking Commands
ada_task_info :: Maybe Int -> CommandSource
Program Execution
exec_finish :: Bool -> CommandSource
exec_until :: Location -> CommandSource
Stack Manipulation
stack_list_arguments :: PrintValues -> Maybe (Int, Int) -> CommandSource
Variable Objects
var_create :: Maybe String -> FrameSelect -> String -> CommandSource
var_delete :: Bool -> String -> CommandSource
var_set_format :: String -> FormatSpec -> CommandSource
var_list_children :: Maybe PrintValues -> String -> Maybe (Int, Int) -> CommandSource
var_assign :: String -> String -> CommandSource
var_update :: Maybe PrintValues -> Maybe String -> CommandSource
var_set_frozen :: String -> FrozenFlag -> CommandSource
var_set_visualizer :: String -> String -> CommandSource
Data Manipulation
data_disassemble :: Either (String, String) (String, Int, Maybe Int) -> DisassemblyMode -> CommandSource
data_list_register_names :: [Int] -> CommandSource
data_list_register_values :: DataFormat -> [Int] -> CommandSource
data_read_memory :: Maybe Int -> String -> OutputFormat -> Int -> Int -> Int -> Maybe Char -> CommandSource
data_write_memory_bytes :: String -> String -> CommandSource
Tracepoint Commands
trace_find :: TraceMode -> CommandSource
trace_save :: Bool -> String -> CommandSource
Symbol Query
File Commands
Target Manipulation
target_detach :: Maybe Int -> CommandSource
target_select :: Target -> CommandSource
File Transfer Commands
target_file_put :: FilePath -> FilePath -> CommandSource
target_file_get :: FilePath -> FilePath -> CommandSource
Miscellaneous Commmands
gdb_gdbShow :: String -> CommandSource
interpreter_exec :: Interpreter -> Command -> CommandSource
enable_timings :: Bool -> CommandSource
Auxiliary Types
Location
file_line_location :: String -> Int -> LocationSource
file_function_location :: String -> String -> LocationSource
Other Types
See the documentation of the commands that use these types for their semantics.
data PrintValues Source
NoValues | "--no-values" or "0" |
AllValues | "--all-values" or "1" |
SimpleValues | "--simple-values" or "2" |
GdbShow PrintValues |
data FrameSelect Source
FrameAddr String | just the given address |
CurrentFrame | "*" |
Floating | "@" |
GdbShow FrameSelect |
data FormatSpec Source
Binary | "binary" |
Decimal | "decimal" |
Hexadecimal | "hexadecimal" |
Octal | "octal" |
Natural | "natural" |
GdbShow FormatSpec |
data DisassemblyMode Source
DisassemblyMode Bool Bool | with mixed source?, with raw opcodes? |
GdbShow DisassemblyMode |
data DataFormat Source
GdbShow DataFormat |
data OutputFormat Source
HexadecimalInteger | "x" |
SignedDecimalInteger | "d" |
UnsignedDecimalInteger | "u" |
OctalInteger | "o" |
BinaryInteger | "t" |
Address | "a" |
CharacterConstantInteger | "c" |
FloatingPointNumber | "f" |
OString | "s" |
Raw | "r" |
GdbShow OutputFormat |
None | "none" |
FrameNumber Int | "frame-number" |
TracepointNumber Int | "tracepoint-number" |
PC String | "pc" |
PCInsideRange String String | "pc-inside-range" |
PCOutsideRange String String | "pc-outside-range" |
Line Location | "line" |
GdbShow TraceMode |
GdbShow Target |
SerialDevice String | just the given device |
TcpHost String Int | "tcp:%s:%d" host port |
UdpHost String Int | "udp:%s:%d" host port |
Pipe String | "|%s" command |
GdbShow Medium |
Helper Functions
cli_command :: String -> CommandSource
Create a CLI command, i.e., use the provided string literaly.
Some GDB commands are not reflected in the Machine Interface. In those cases one has to resort to Command Line Interface commands, which the MI accepts as well.
set_token :: Token -> Command -> CommandSource
Set the token of a command. http://sourceware.org/gdb/current/onlinedocs/gdb/GDB_002fMI-Input-Syntax.html
Newly created commands have no token, but setting a token manually is usually not necessary.
send_command
will assign a unique token to a given command in any case.