diff options
author | Tom Tromey <tromey@adacore.com> | 2019-04-23 07:29:49 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-04-25 12:59:35 -0600 |
commit | c6fdd8b2052baa9b7a27d4d34f109c9622b53509 (patch) | |
tree | 98fecba5793b6509802d1f653f4f5c8f46ee3463 /bfd | |
parent | cc06b668978e542ecbc2aff1beca40e5baff86b0 (diff) | |
download | gdb-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