Export gdb.block_signals and create gdb.Thread
authorTom Tromey <tom@tromey.com>
Tue, 4 Jul 2023 15:15:54 +0000 (09:15 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 23 Jul 2023 20:33:44 +0000 (14:33 -0600)
commit560c121c207af3c31c83a815de2569535fcd3aa7
tree950e734a9586020f9b2d3f70293eda7957330bb0
parent8a9da63e407c511df32841abcbe20effe2f3e398
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.
gdb/NEWS
gdb/doc/python.texi
gdb/python/lib/gdb/__init__.py
gdb/python/lib/gdb/dap/startup.py