[C++] Switch TRY/CATCH to real C++ try/catch by default again
authorPedro Alves <palves@redhat.com>
Tue, 12 Apr 2016 16:49:24 +0000 (17:49 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 12 Apr 2016 16:49:24 +0000 (17:49 +0100)
commit0f41b320edb93e2c0cdd76f218811e197156b052
tree3b03ca2cc2bf41c76515471b9a8c59d8bd7e5ef7
parent173981bc49c9e8fce9271cb47714952dbe2ec627
[C++] Switch TRY/CATCH to real C++ try/catch by default again

Now that we don't ever throw GDB exceptions from signal handlers [1],
we can switch back to having TRY/CATCH implemented in terms of C++
try/catch instead of sigjmp/longjmp.

[1] - https://sourceware.org/ml/gdb-patches/2016-03/msg00351.html

Tested on x86_64 Fedora 23, native and gdbserver.

gdb/ChangeLog:
2016-04-12  Pedro Alves  <palves@redhat.com>

* common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
[__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
gdb/ChangeLog
gdb/common/common-exceptions.h