diff options
author | Tom Tromey <tom@tromey.com> | 2019-01-28 10:56:58 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-04-08 09:05:41 -0600 |
commit | 26003a205e207db7985c32ec1964a04652b68413 (patch) | |
tree | 9800bd8e170266abe2ecc4f07972ba47f88429ff /gdb/ChangeLog | |
parent | d272eb370a4c086a1d0f86a7a94e89328ec8d97e (diff) | |
download | gdb-26003a205e207db7985c32ec1964a04652b68413.zip gdb-26003a205e207db7985c32ec1964a04652b68413.tar.gz gdb-26003a205e207db7985c32ec1964a04652b68413.tar.bz2 |
Make exception throwing a bit more efficient
This makes exception throwing a bit more efficient, by removing some
copies.
gdb/ChangeLog
2019-04-08 Tom Tromey <tom@tromey.com>
* common/common-exceptions.c (throw_exception): Rename from
throw_exception_cxx. Remove old copy. Make argument const.
(throw_it): Create and throw exception objects directly.
* common/common-exceptions.h (throw_exception): Make argument
const.
(struct gdb_exception_error): Add constructor.
(struct gdb_exception_quit): Add constructor.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 36b6b61..a0d8d09 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,15 @@ 2019-04-08 Tom Tromey <tom@tromey.com> + * common/common-exceptions.c (throw_exception): Rename from + throw_exception_cxx. Remove old copy. Make argument const. + (throw_it): Create and throw exception objects directly. + * common/common-exceptions.h (throw_exception): Make argument + const. + (struct gdb_exception_error): Add constructor. + (struct gdb_exception_quit): Add constructor. + +2019-04-08 Tom Tromey <tom@tromey.com> + * common/common-exceptions.h (exception_rethrow): Don't declare. (TRY_SJLJ): Update comment. (TRY, CATCH, END_CATCH): Remove. |