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/ChangeLog | |
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/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7d79c81..cc2c270 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +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. + 2019-04-05 Tom Tromey <tom@tromey.com> Revert the header-sorting patch. |