diff options
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r-- | gdb/infcall.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c index 52f9bc9..af60fdc 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -605,9 +605,9 @@ run_inferior_call (struct call_thread_fsm *sm, target supports asynchronous execution. */ wait_sync_command_done (); } - catch (const gdb_exception &e) + catch (gdb_exception &e) { - caught_error = e; + caught_error = std::move (e); } /* If GDB has the prompt blocked before, then ensure that it remains @@ -1195,7 +1195,7 @@ When the function is done executing, GDB will silently stop."), e.what (), name); case RETURN_QUIT: default: - throw_exception (e); + throw_exception (std::move (e)); } } |