GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Functions | Variables
gdb.dap.startup Namespace Reference

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()
 

Function Documentation

◆ exec_and_log()

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.

◆ in_dap_thread()

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.

◆ in_gdb_thread()

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.

◆ log()

gdb.dap.startup.log ( something)
Log SOMETHING to the log file, if logging is enabled.

Definition at line 105 of file startup.py.

◆ log_stack()

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.

◆ send_gdb()

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.

◆ send_gdb_with_response()

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.

◆ start_dap()

gdb.dap.startup.start_dap ( target)
Start the DAP thread and invoke TARGET there.

Definition at line 42 of file startup.py.

◆ start_thread()

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.

Variable Documentation

◆ _dap_thread

gdb.dap.startup._dap_thread = None
protected

Definition at line 31 of file startup.py.

◆ _gdb_thread

gdb.dap.startup._gdb_thread = threading.current_thread()
protected

Definition at line 27 of file startup.py.

◆ dap_log

gdb.dap.startup.dap_log = LoggingParam()

Definition at line 102 of file startup.py.