aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-04-23 07:29:49 -0600
committerTom Tromey <tromey@adacore.com>2019-04-25 12:59:35 -0600
commitc6fdd8b2052baa9b7a27d4d34f109c9622b53509 (patch)
tree98fecba5793b6509802d1f653f4f5c8f46ee3463 /bfd
parentcc06b668978e542ecbc2aff1beca40e5baff86b0 (diff)
downloadgdb-c6fdd8b2052baa9b7a27d4d34f109c9622b53509.zip
gdb-c6fdd8b2052baa9b7a27d4d34f109c9622b53509.tar.gz
gdb-c6fdd8b2052baa9b7a27d4d34f109c9622b53509.tar.bz2
Make SJLJ exceptions more efficient
This changes the SJLJ exception handling code to be a bit more efficient, by using rvalue references and move assignment when possible. Tested by the buildbot. gdb/ChangeLog 2019-04-25 Tom Tromey <tromey@adacore.com> * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept) (gdb_rl_callback_handler): Use std::move. * common/common-exceptions.h (struct gdb_exception): Add move assignment operator. (throw_exception_sjlj): Change "exception" to const reference. * common/common-exceptions.c (exceptions_state_mc_catch): Update. (throw_exception_sjlj): Change "exception" to const reference.
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions