pygdbmi.gdbcontroller
module
+Module pygdbmi.gdbcontroller
GdbController class to programatically run gdb and get structured output
@@ -559,7 +559,10 @@Args
Returns
-New GdbController object
-
+
New
GdbController
object
+- +
Source code
class GdbController:
@@ -960,11 +963,8 @@ Methods
def exit(self)
-
-
- Terminate gdb process -
Returns
:None
-- -
Terminate gdb process +Returns: None
Source code
def exit(self):
@@ -992,12 +992,21 @@ Args
after timeout_sec
Returns
-List of parsed GDB responses, returned from gdbmiparser.parse_response, with the
-additional key 'stream' which is either 'stdout' or 'stderr'
+
+List
of parsed
GDB
responses
, returned
from
gdbmiparser.parse_response
, with
the
+-
+additional
key
'stream'
which
is
either
'stdout'
or 'stderr'
+-
+
Raises
-GdbTimeoutError if response is not received within timeout_sec
-ValueError if select returned unexpected file number
-NoGdbProcessError if there is no gdb subprocess running
+
+GdbTimeoutError
if
response
is
not
received
within
timeout_sec
+-
+ValueError
if
select
returned
unexpected
file
number
+-
+NoGdbProcessError
if
there
is
no
gdb
subprocess
running
+-
+
Source code
def get_gdb_response(
@@ -1198,10 +1207,17 @@ Args
this can be false, and the reading thread read the output.
Returns
-List of parsed gdb responses if read_response is True, otherwise []
+
+List
of parsed
gdb
responses
if
read_response
is
True
, otherwise
[]
+-
+
Raises
-NoGdbProcessError if there is no gdb subprocess running
-TypeError if mi_cmd_to_write is not valid
+
+NoGdbProcessError
if
there
is
no
gdb
subprocess
running
+-
+TypeError
if
mi_cmd_to_write
is
not
valid
+-
+
Source code
def write(
@@ -1358,7 +1374,7 @@
-Generated by pdoc 0.5.5.dev14+gca359aa.
+Generated by pdoc 0.6.2.
diff --git a/docs/gdbmiparser.html b/docs/gdbmiparser.html
index 11eeaec..fa7492c 100644
--- a/docs/gdbmiparser.html
+++ b/docs/gdbmiparser.html
@@ -3,7 +3,7 @@
-
+
pygdbmi.gdbmiparser API documentation
@@ -17,7 +17,7 @@
-pygdbmi.gdbmiparser
module
+Module pygdbmi.gdbmiparser
Python parser for gdb's machine interface interpreter.
@@ -409,12 +409,9 @@ Functions
def assert_match(actual_char_or_str, expected_char_or_str)
-
-- If values don't match, print them and raise a ValueError, otherwise,
-- continue
-Raises
: ValueError
if
arguments
do
not
match
--
-
+If values don't match, print them and raise a ValueError, otherwise,
+continue
+Raises: ValueError if arguments do not match
Source code
def assert_match(actual_char_or_str, expected_char_or_str):
@@ -443,10 +440,16 @@ Args
String output from gdb
Returns
-dict with the following keys:
-type (either 'notify', 'result', 'console', 'log', 'target', 'done'),
-message (str or None),
-payload (str, list, dict, or None)
+
+dict
with
the
following
keys
:
+-
+type
(either
'notify'
, 'result'
, 'console'
, 'log'
, 'target'
, 'done'
),
+-
+message
(str
or None
),
+-
+payload
(str
, list
, dict
, or None
)
+-
+
Source code
def parse_response(gdb_mi_text):
@@ -518,11 +521,8 @@ Returns
def response_is_finished(gdb_mi_text)
-
-- Return true if the gdb mi response is ending
-Returns
: True
if
gdb
response
is
finished
--
-
+Return true if the gdb mi response is ending
+Returns: True if gdb response is finished
Source code
def response_is_finished(gdb_mi_text):
@@ -562,7 +562,7 @@ Index