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
42 43 44 45 46 47 48 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 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
|
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
111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
|