aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-11-17 15:17:46 +0000
committerPedro Alves <palves@redhat.com>2015-11-17 15:23:15 +0000
commiteec461d0a8e7ae14c7fe8f0196ab8d0e30285d83 (patch)
tree5daba190a7a9e2e54b413e69ffefdb18cd7f315d /gdb/symtab.h
parent91ee7171d0886731900ab0238ce3795241d877a4 (diff)
downloadgdb-eec461d0a8e7ae14c7fe8f0196ab8d0e30285d83.zip
gdb-eec461d0a8e7ae14c7fe8f0196ab8d0e30285d83.tar.gz
gdb-eec461d0a8e7ae14c7fe8f0196ab8d0e30285d83.tar.bz2
[C++] Always use setjmp/longjmp for exceptions
We currently throw exceptions from signal handlers (e.g., for Quit/ctrl-c). But throwing C++ exceptions from signal handlers is undefined. (That doesn't restore signal masks, like siglongjmp does, and, because asynchronous signals can arrive at any instruction, we'd have to build _everything_ with -fasync-unwind-tables to make it reliable.) It happens to work on x86_64 GNU/Linux at least, but it's likely broken on other ports. Until we stop throwing from signal handlers, use setjmp/longjmp based exceptions in C++ mode as well. gdb/ChangeLog: 2015-11-17 Pedro Alves <palves@redhat.com> * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY) (GDB_XCPT_RAW_TRY, GDB_XCPT): Define. Replace __cplusplus checks with GDB_XCPT checks throughout. * common/common-exceptions.c: Replace __cplusplus checks with GDB_XCPT checks throughout.
Diffstat (limited to 'gdb/symtab.h')
0 files changed, 0 insertions, 0 deletions