diff options
author | Tom Tromey <tom@tromey.com> | 2019-01-24 17:31:21 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-04-08 09:05:37 -0600 |
commit | c5c10118216867e133c132b4f46e19fb6aa9258a (patch) | |
tree | 46b80e4714d51d586f4f11ffc0a33df9e695e6d4 /gdb/exec.c | |
parent | d970ee2bae1925bb9265d37adef0b92e2678d666 (diff) | |
download | gdb-c5c10118216867e133c132b4f46e19fb6aa9258a.zip gdb-c5c10118216867e133c132b4f46e19fb6aa9258a.tar.gz gdb-c5c10118216867e133c132b4f46e19fb6aa9258a.tar.bz2 |
Simplify exception handling
Now that cleanups have been removed, TRY/CATCH can't be SJLJ-based any
more. This patch simplifies the exception handling code, by removing
the non-working variants.
Note that the "pure" C++ exception handling code is removed as well; I
think the route forward must be to change exceptions to be
self-destructing, so that try_scope_depth can simply be removed.
Some longjmp-based code remains, as it is needed to throw an exception
through readline.
gdb/ChangeLog
2019-04-08 Tom Tromey <tom@tromey.com>
* common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
(GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
(TRY, CATCH, END_CATCH): Remove some definitions.
* common/common-exceptions.c: Don't use GDB_XCPT.
(catcher_list_size): Remove.
(throw_exception, throw_it): Simplify.
Diffstat (limited to 'gdb/exec.c')
0 files changed, 0 insertions, 0 deletions