GDB (xrefs)
|
Classes | |
class | Invoker |
class | LoggingParam |
Functions | |
start_thread (name, target, args=()) | |
start_dap (target) | |
in_gdb_thread (func) | |
in_dap_thread (func) | |
log (something) | |
log_stack () | |
exec_and_log (cmd) | |
send_gdb (cmd) | |
send_gdb_with_response (fn) | |
Variables | |
_gdb_thread = threading.current_thread() | |
_dap_thread = None | |
dap_log = LoggingParam() | |
gdb.dap.startup.exec_and_log | ( | cmd | ) |
Execute the gdb command CMD. If logging is enabled, log the command and its output.
Definition at line 119 of file startup.py.
gdb.dap.startup.in_dap_thread | ( | func | ) |
A decorator that asserts that FUNC must be run in the DAP thread.
Definition at line 67 of file startup.py.
References func.
gdb.dap.startup.in_gdb_thread | ( | func | ) |
A decorator that asserts that FUNC must be run in the GDB thread.
Definition at line 56 of file startup.py.
References func.
gdb.dap.startup.log | ( | something | ) |
Log SOMETHING to the log file, if logging is enabled.
Definition at line 105 of file startup.py.
gdb.dap.startup.log_stack | ( | ) |
Log a stack trace to the log file, if logging is enabled.
Definition at line 112 of file startup.py.
gdb.dap.startup.send_gdb | ( | cmd | ) |
Send CMD to the gdb thread. CMD can be either a function or a string. If it is a string, it is passed to gdb.execute.
Definition at line 143 of file startup.py.
gdb.dap.startup.send_gdb_with_response | ( | fn | ) |
Send FN to the gdb thread and return its result. If FN is a string, it is passed to gdb.execute and None is returned as the result. If FN throws an exception, this function will throw the same exception in the calling thread.
Definition at line 152 of file startup.py.
gdb.dap.startup.start_dap | ( | target | ) |
Start the DAP thread and invoke TARGET there.
Definition at line 42 of file startup.py.
gdb.dap.startup.start_thread | ( | name, | |
target, | |||
args = () ) |
Start a new thread, invoking TARGET with *ARGS there. This is a helper function that ensures that any GDB signals are correctly blocked.
Definition at line 34 of file startup.py.
|
protected |
Definition at line 31 of file startup.py.
|
protected |
Definition at line 27 of file startup.py.
gdb.dap.startup.dap_log = LoggingParam() |
Definition at line 102 of file startup.py.