Notes:
•The CLI commands are still handled by the MI interpreter; their output is described below.
•The token, when present, is passed back when the command finishes.
•Some MI commands accept optional arguments as part of the parameter list. Each option is identified by a leading
Pragmatics:
•We want easy access to the existing CLI syntax (for debugging).
•We want it to be easy to spot a MI operation.
21.1.2GDB/MI Output syntaxThe output from GDB/MI consists of zero or more
If an input command was prefixed with a token then the corresponding output for that command will also be prefixed by that same token.
output → | ( | [ | ||
| ] "(gdb)" | nl | ||
[ token ] | "^" | |||
| result )* | nl |
|
|
[ token ] "*"
[ token ] "+"
[ token ] "="
"done" "running" "connected" "error" "exit"
"stopped" others (where others will be | |
| added depending on the needs―this is still in |
| development). |
result | variable "=" value |
variable | string |
308 The GDB/MI Interface