diff options
author | Tom Tromey <tom@tromey.com> | 2023-07-04 09:15:54 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-07-23 14:33:44 -0600 |
commit | 560c121c207af3c31c83a815de2569535fcd3aa7 (patch) | |
tree | 950e734a9586020f9b2d3f70293eda7957330bb0 /gdb/NEWS | |
parent | 8a9da63e407c511df32841abcbe20effe2f3e398 (diff) | |
download | gdb-560c121c207af3c31c83a815de2569535fcd3aa7.zip gdb-560c121c207af3c31c83a815de2569535fcd3aa7.tar.gz gdb-560c121c207af3c31c83a815de2569535fcd3aa7.tar.bz2 |
Export gdb.block_signals and create gdb.Thread
While working on an experiment, I realized that I needed the DAP
block_signals function. I figured other developers may need it as
well, so this patch moves it from DAP to the gdb module and exports
it.
I also added a new subclass of threading.Thread that ensures that
signals are blocked in the new thread.
Finally, this patch slightly rearranges the documentation so that
gdb-side threading issues and functions are all discussed in a single
node.
Diffstat (limited to 'gdb/NEWS')
-rw-r--r-- | gdb/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -228,6 +228,12 @@ info main ** New function gdb.execute_mi(COMMAND, [ARG]...), that invokes a GDB/MI command and returns the output as a Python dictionary. + ** New function gdb.block_signals(). This returns a context manager + that blocks any signals that GDB needs to handle itself. + + ** New class gdb.Thread. This is a subclass of threading.Thread + that calls gdb.block_signals in its "start" method. + ** gdb.parse_and_eval now has a new "global_context" parameter. This can be used to request that the parse only examine global symbols. |