Make exception throwing a bit more efficient
authorTom Tromey <tom@tromey.com>
Mon, 28 Jan 2019 17:56:58 +0000 (10:56 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 8 Apr 2019 15:05:41 +0000 (09:05 -0600)
commit26003a205e207db7985c32ec1964a04652b68413
tree9800bd8e170266abe2ecc4f07972ba47f88429ff
parentd272eb370a4c086a1d0f86a7a94e89328ec8d97e
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.
gdb/ChangeLog
gdb/common/common-exceptions.c
gdb/common/common-exceptions.h
This page took 0.025171 seconds and 4 git commands to generate.