Introduce alternate_signal_stack RAII class
authorTom Tromey <tom@tromey.com>
Sun, 29 Sep 2019 15:27:11 +0000 (09:27 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 26 Nov 2019 21:02:57 +0000 (14:02 -0700)
commitc3efb9654847822620010922cb7ea61e8901479c
tree19776ea09f27af39d30ac52c3c53b8f10435a317
parent21987b9c060033d367abc50c29f786df4c21b10c
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
gdb/ChangeLog
gdb/gdbsupport/alt-stack.h [new file with mode: 0644]
gdb/main.c
This page took 0.025993 seconds and 4 git commands to generate.