+2019-04-08 Tom Tromey <tom@tromey.com>
+
+ * valops.c (value_rtti_indirect_type): Replace throw_exception
+ with throw.
+ * tracefile-tfile.c (tfile_target_open): Replace throw_exception
+ with throw.
+ * thread.c (thr_try_catch_cmd): Replace throw_exception with
+ throw.
+ * target.c (target_translate_tls_address): Replace throw_exception
+ with throw.
+ * stack.c (frame_apply_command_count): Replace throw_exception
+ with throw.
+ * solib-spu.c (append_ocl_sos): Replace throw_exception with
+ throw.
+ * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
+ with throw.
+ * rs6000-tdep.c (rs6000_frame_cache)
+ (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
+ * remote.c: Replace throw_exception with throw.
+ * record-full.c (record_full_message, record_full_wait_1)
+ (record_full_restore): Replace throw_exception with throw.
+ * record-btrace.c:
+ (get_thread_current_frame_id, record_btrace_start_replaying)
+ (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
+ (cmd_record_btrace_start): Replace throw_exception with throw.
+ * parse.c (parse_exp_in_context_1): Replace throw_exception with
+ throw.
+ * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
+ (resume_stopped_resumed_lwps): Replace throw_exception with throw.
+ * linespec.c:
+ (find_linespec_symbols): Replace throw_exception with throw.
+ * infrun.c (displaced_step_prepare, resume): Replace
+ throw_exception with throw.
+ * infcmd.c (post_create_inferior): Replace throw_exception with
+ throw.
+ * inf-loop.c (inferior_event_handler): Replace throw_exception
+ with throw.
+ * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
+ (i386_sigtramp_frame_cache): Replace throw_exception with throw.
+ * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
+ (get_prev_frame_always, get_frame_pc_if_available)
+ (get_frame_address_in_block_if_available, get_frame_language):
+ Replace throw_exception with throw.
+ * frame-unwind.c (frame_unwind_try_unwinder): Replace
+ throw_exception with throw.
+ * eval.c (fetch_subexp_value, evaluate_var_value)
+ (evaluate_funcall, evaluate_subexp_standard): Replace
+ throw_exception with throw.
+ * dwarf2loc.c (call_site_find_chain)
+ (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
+ Replace throw_exception with throw.
+ * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
+ with throw.
+ * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
+ throw.
+ * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
+ * completer.c (complete_line_internal): Replace throw_exception
+ with throw.
+ * compile/compile-object-run.c (compile_object_run): Replace
+ throw_exception with throw.
+ * cli/cli-script.c (process_next_line): Replace throw_exception
+ with throw.
+ * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
+ (btrace_enable, btrace_maint_update_pt_packets): Replace
+ throw_exception with throw.
+ * breakpoint.c (create_breakpoint, save_breakpoints): Replace
+ throw_exception with throw.
+ * break-catch-throw.c (re_set_exception_catchpoint): Replace
+ throw_exception with throw.
+ * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
+ (amd64_epilogue_frame_cache): Replace throw_exception with throw.
+ * aarch64-tdep.c (aarch64_make_prologue_cache)
+ (aarch64_make_stub_cache): Replace throw_exception with throw.
+
2019-04-08 Tom Tromey <tom@tromey.com>
* common/common-exceptions.c (throw_exception): Rename from
catch (const gdb_exception_error &ex)
{
if (ex.error != NOT_AVAILABLE_ERROR)
- throw_exception (ex);
+ throw;
}
return cache;
catch (const gdb_exception_error &ex)
{
if (ex.error != NOT_AVAILABLE_ERROR)
- throw_exception (ex);
+ throw;
}
return cache;
catch (const gdb_exception_error &ex)
{
if (ex.error != NOT_AVAILABLE_ERROR)
- throw_exception (ex);
+ throw;
}
return cache;
catch (const gdb_exception_error &ex)
{
if (ex.error != NOT_AVAILABLE_ERROR)
- throw_exception (ex);
+ throw;
}
*this_cache = cache;
catch (const gdb_exception_error &ex)
{
if (ex.error != NOT_AVAILABLE_ERROR)
- throw_exception (ex);
+ throw;
}
return cache;
/* NOT_FOUND_ERROR just means the breakpoint will be
pending, so let it through. */
if (ex.error != NOT_FOUND_ERROR)
- throw_exception (ex);
+ throw;
}
}
error. */
if (pending_break_support == AUTO_BOOLEAN_FALSE)
- throw_exception (e);
+ throw;
exception_print (gdb_stderr, e);
pending = 1;
}
else
- throw_exception (e);
+ throw;
}
if (!pending && canonical.lsals.empty ())
happens only when a binary has changed, I don't know
which approach is better. */
b->enable_state = bp_disabled;
- throw_exception (e);
+ throw;
}
}
catch (const gdb_exception &ex)
{
current_uiout->redirect (NULL);
- throw_exception (ex);
+ throw;
}
current_uiout->redirect (NULL);
btrace_finalize_ftrace_pt (decoder, tp, level);
- throw_exception (error);
+ throw;
}
btrace_finalize_ftrace_pt (decoder, tp, level);
{
btrace_finalize_ftrace (tp, gaps);
- throw_exception (error);
+ throw;
}
btrace_finalize_ftrace (tp, gaps);
{
btrace_disable (tp);
- throw_exception (exception);
+ throw;
}
}
pt_pkt_free_decoder (decoder);
if (except.reason < 0)
- throw_exception (except);
+ throw;
}
pt_pkt_free_decoder (decoder);
catch (const gdb_exception &ex)
{
free_command_lines (command);
- throw_exception (ex);
+ throw;
}
}
gdb_assert (!(dtor_found && executed));
if (!dtor_found && !executed)
do_module_cleanup (data, 0);
- throw_exception (ex);
+ throw;
}
dtor_found = find_dummy_frame_dtor (do_module_cleanup, data);
catch (const gdb_exception_error &except)
{
if (except.error != MAX_COMPLETIONS_REACHED_ERROR)
- throw_exception (except);
+ throw;
}
}
catch (const gdb_exception_error &ex)
{
if (ex.error != NOT_AVAILABLE_ERROR)
- throw_exception (ex);
+ throw;
throw_error (NOT_AVAILABLE_ERROR,
_("Cannot determine virtual baseclass offset "
exit_inferior (inf);
inferior_ptid = null_ptid;
- throw_exception (ex);
+ throw;
}
target_ops *darwin_ops = get_native_target ();
return cache;
}
- throw_exception (ex);
+ throw;
}
/* Initialize the register state. */
return NULL;
}
else
- throw_exception (e);
+ throw;
}
return retval;
return allocate_optimized_out_value (subobj_type);
}
else
- throw_exception (ex);
+ throw;
}
if (ctx.pieces.size () > 0)
return 0;
}
else
- throw_exception (ex);
+ throw;
}
switch (ctx.location)
break;
/* Fall through. */
default:
- throw_exception (ex);
+ throw;
break;
}
}
catch (const gdb_exception_error &except)
{
if (noside != EVAL_AVOID_SIDE_EFFECTS)
- throw_exception (except);
+ throw;
ret = value_zero (SYMBOL_TYPE (var), not_lval);
}
if (except.error == NOT_FOUND_ERROR)
break;
else
- throw_exception (except);
+ throw;
}
arg2 = value;
if (except.error == NOT_FOUND_ERROR)
break;
else
- throw_exception (except);
+ throw;
}
arg1 = value;
should always accept the frame. */
return 0;
}
- throw_exception (ex);
+ throw;
}
if (res)
this_frame->level);
}
else
- throw_exception (ex);
+ throw;
}
if (pc_p)
prev_frame->next = NULL;
this_frame->prev = NULL;
- throw_exception (ex);
+ throw;
}
return prev_frame;
prev_frame = NULL;
}
else
- throw_exception (ex);
+ throw;
}
return prev_frame;
if (ex.error == NOT_AVAILABLE_ERROR)
return 0;
else
- throw_exception (ex);
+ throw;
}
return 1;
{
if (ex.error == NOT_AVAILABLE_ERROR)
return 0;
- throw_exception (ex);
+ throw;
}
return 1;
catch (const gdb_exception_error &ex)
{
if (ex.error != NOT_AVAILABLE_ERROR)
- throw_exception (ex);
+ throw;
}
if (pc_p)
+2019-04-08 Tom Tromey <tom@tromey.com>
+
+ * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
+ throw.
+ (linux_resume_one_lwp): Likewise.
+
2019-04-08 Tom Tromey <tom@tromey.com>
* gdbreplay.c: Update.
catch (const gdb_exception_error &ex)
{
if (!check_ptrace_stopped_lwp_gone (lwp))
- throw_exception (ex);
+ throw;
}
lwpid = lwpid_of (thread);
catch (const gdb_exception_error &ex)
{
if (!check_ptrace_stopped_lwp_gone (lwp))
- throw_exception (ex);
+ throw;
}
}
catch (const gdb_exception_error &ex)
{
if (ex.error != NOT_AVAILABLE_ERROR)
- throw_exception (ex);
+ throw;
}
return cache;
catch (const gdb_exception_error &ex)
{
if (ex.error != NOT_AVAILABLE_ERROR)
- throw_exception (ex);
+ throw;
}
return cache;
catch (const gdb_exception_error &ex)
{
if (ex.error != NOT_AVAILABLE_ERROR)
- throw_exception (ex);
+ throw;
}
*this_cache = cache;
the prompt and is typing some unrelated command, so
just inform the user and swallow the exception. */
if (current_ui->prompt_state == PROMPT_BLOCKED)
- throw_exception (e);
+ throw;
else
exception_print (gdb_stderr, e);
}
catch (const gdb_exception_error &ex)
{
if (ex.error != NOT_AVAILABLE_ERROR)
- throw_exception (ex);
+ throw;
}
if (exec_bfd)
if (ex.error != MEMORY_ERROR
&& ex.error != NOT_SUPPORTED_ERROR)
- throw_exception (ex);
+ throw;
if (debug_infrun)
{
we're running in non-stop mode. */
if (inferior_ptid != null_ptid)
delete_single_step_breakpoints (inferior_thread ());
- throw_exception (ex);
+ throw;
}
}
}
catch (const gdb_exception_error &except)
{
- throw_exception (except);
+ throw;
}
}
break;
catch (const gdb_exception_error &except)
{
if (except.error != NOT_FOUND_ERROR)
- throw_exception (except);
+ throw;
}
}
}
catch (const gdb_exception_error &ex)
{
if (!check_ptrace_stopped_lwp_gone (lp))
- throw_exception (ex);
+ throw;
}
if (ptrace (PTRACE_DETACH, lwpid, 0, signo) < 0)
catch (const gdb_exception_error &ex)
{
if (!check_ptrace_stopped_lwp_gone (lp))
- throw_exception (ex);
+ throw;
}
}
catch (const gdb_exception_error &ex)
{
if (!check_ptrace_stopped_lwp_gone (lp))
- throw_exception (ex);
+ throw;
}
}
expression elements have been written, then there's nothing
to do, so fail. */
if (! ps.parse_completion || ps.expout_ptr == 0)
- throw_exception (except);
+ throw;
}
/* We have to operate on an "expression *", due to la_post_parser,
catch (const gdb_exception &except)
{
replay_memory_access = old;
- throw_exception (except);
+ throw;
}
replay_memory_access = old;
catch (const gdb_exception &except)
{
replay_memory_access = old;
- throw_exception (except);
+ throw;
}
replay_memory_access = old;
/* Restore the previous execution state. */
set_executing (inferior_ptid, executing);
- throw_exception (except);
+ throw;
}
/* Restore the previous execution state. */
registers_changed_thread (tp);
- throw_exception (except);
+ throw;
}
return replay;
catch (const gdb_exception &exception)
{
record_btrace_conf.format = BTRACE_FORMAT_NONE;
- throw_exception (exception);
+ throw;
}
}
catch (const gdb_exception &exception)
{
record_btrace_conf.format = BTRACE_FORMAT_NONE;
- throw_exception (exception);
+ throw;
}
}
catch (const gdb_exception &ex)
{
record_btrace_conf.format = BTRACE_FORMAT_NONE;
- throw_exception (ex);
+ throw;
}
}
}
catch (const gdb_exception &ex)
{
record_full_list_release (record_full_arch_list_tail);
- throw_exception (ex);
+ throw;
}
record_full_list->next = record_full_arch_list_head;
else
record_full_list = record_full_list->prev;
- throw_exception (ex);
+ throw;
}
}
catch (const gdb_exception &ex)
{
record_full_list_release (record_full_arch_list_tail);
- throw_exception (ex);
+ throw;
}
/* Add record_full_arch_list_head to the end of record list. */
already before throwing the exception. */
if (ex.error != TARGET_CLOSE_ERROR)
remote_unpush_target ();
- throw_exception (ex);
+ throw;
}
}
/* Otherwise, something went wrong. We didn't actually kill
the target. Just propagate the exception, and let the
user or higher layers decide what to do. */
- throw_exception (ex);
+ throw;
}
}
exception_fprintf (gdb_stderr, ex, "qTStatus: ");
return -1;
}
- throw_exception (ex);
+ throw;
}
result = packet_ok (p, &remote_protocol_packets[PACKET_qTStatus]);
catch (const gdb_exception_error &ex)
{
if (ex.error != NOT_AVAILABLE_ERROR)
- throw_exception (ex);
+ throw;
return (struct rs6000_frame_cache *) (*this_cache);
}
catch (const gdb_exception_error &ex)
{
if (ex.error != NOT_AVAILABLE_ERROR)
- throw_exception (ex);
+ throw;
}
return cache;
catch (const gdb_exception_error &ex)
{
if (ex.error != NOT_AVAILABLE_ERROR)
- throw_exception (ex);
+ throw;
}
return info;
case MEMORY_ERROR:
break;
default:
- throw_exception (ex);
+ throw;
break;
}
}
if (flags.cont)
printf_filtered ("%s\n", ex.what ());
else
- throw_exception (ex);
+ throw;
}
}
}
objfile_name (objfile), ex.what ());
break;
default:
- throw_exception (ex);
+ throw;
break;
}
}
if (flags.cont)
printf_filtered ("%s\n", ex.what ());
else
- throw_exception (ex);
+ throw;
}
}
}
{
/* Remove the partially set up target. */
unpush_target (&tfile_ops);
- throw_exception (ex);
+ throw;
}
inferior_appeared (current_inferior (), TFILE_PID);
type. */
return NULL;
}
- throw_exception (except);
+ throw;
}
}
else