gdbmiparser
Python parser for gdb's machine interface interpreter.
Parses string output from gdb with the --interpreter=mi2 flag into
structured objects.
See more at https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI.html#GDB_002fMI
parse_response(gdb_mi_text)
Parse gdb mi text and turn it into a dictionary.
See https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Stream-Records.html#GDB_002fMI-Stream-Records for details on types of gdb mi output.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
gdb_mi_text |
str
|
String output from gdb |
required |
Returns:
| Type | Description |
|---|---|
Dict
|
dictionary with keys "type", "message", "payload", "token" |
Source code in pygdbmi/gdbmiparser.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |
response_is_finished(gdb_mi_text)
Return true if the gdb mi response is ending
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
gdb_mi_text |
str
|
String output from gdb |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if gdb response is finished |
Source code in pygdbmi/gdbmiparser.py
77 78 79 80 81 82 83 84 85 86 | |