diff options
author | Tom Tromey <tom@tromey.com> | 2019-09-29 09:27:11 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-11-26 14:02:57 -0700 |
commit | c3efb9654847822620010922cb7ea61e8901479c (patch) | |
tree | 19776ea09f27af39d30ac52c3c53b8f10435a317 /gdb/unittests | |
parent | 21987b9c060033d367abc50c29f786df4c21b10c (diff) | |
download | gdb-c3efb9654847822620010922cb7ea61e8901479c.zip gdb-c3efb9654847822620010922cb7ea61e8901479c.tar.gz gdb-c3efb9654847822620010922cb7ea61e8901479c.tar.bz2 |
Introduce alternate_signal_stack RAII class
This introduces a new RAII class that temporarily installs an
alternate signal stack (on systems that have sigaltstack); then
changes the one gdb use of sigaltstack to use this class instead.
This will be used in a later patch, when creating new threads that may
want to handle SIGSEGV.
gdb/ChangeLog
2019-11-26 Tom Tromey <tom@tromey.com>
* main.c (setup_alternate_signal_stack): Remove.
(captured_main_1): Use gdb::alternate_signal_stack.
* gdbsupport/alt-stack.h: New file.
Change-Id: I721c047ae9d51a35fd274a6dbc00a58c6440dae6
Diffstat (limited to 'gdb/unittests')
0 files changed, 0 insertions, 0 deletions