GDB (xrefs)
|
Go to the source code of this file.
Classes | |
struct | catcher |
Enumerations | |
enum | catcher_state { CATCHER_CREATED, CATCHER_RUNNING, CATCHER_RUNNING_1, CATCHER_ABORTING } |
enum | catcher_action { CATCH_ITER, CATCH_ITER_1, CATCH_THROWING } |
Functions | |
static int | catcher_list_size (void) |
SIGJMP_BUF * | exceptions_state_mc_init (void) |
static void | catcher_pop (void) |
static int | exceptions_state_mc (enum catcher_action action) |
int | exceptions_state_mc_catch (struct gdb_exception *exception, int mask) |
int | exceptions_state_mc_action_iter (void) |
int | exceptions_state_mc_action_iter_1 (void) |
void | throw_exception (struct gdb_exception exception) |
static void ATTRIBUTE_NORETURN | ATTRIBUTE_PRINTF (3, 0) |
void | throw_verror (enum errors error, const char *fmt, va_list ap) |
void | throw_vquit (const char *fmt, va_list ap) |
void | throw_error (enum errors error, const char *fmt,...) |
void | throw_quit (const char *fmt,...) |
Variables | |
const struct gdb_exception | exception_none = { 0, GDB_NO_ERROR, NULL } |
static struct catcher * | current_catcher |
static char ** | exception_messages |
static int | exception_messages_size |
enum catcher_action |
Enumerator | |
---|---|
CATCH_ITER | |
CATCH_ITER_1 | |
CATCH_THROWING |
Definition at line 39 of file common-exceptions.c.
enum catcher_state |
Enumerator | |
---|---|
CATCHER_CREATED | |
CATCHER_RUNNING | |
CATCHER_RUNNING_1 | |
CATCHER_ABORTING |
Definition at line 28 of file common-exceptions.c.
|
static |
Definition at line 317 of file common-exceptions.c.
References catcher_list_size(), error(), gdb_exception::error, exception_messages_size, gdb_assert, gdb_exception::message, gdb_exception::reason, throw_exception(), xfree(), xrealloc(), and xstrvprintf().
|
static |
Definition at line 63 of file common-exceptions.c.
References catcher::prev, and size.
Referenced by ATTRIBUTE_PRINTF().
|
static |
Definition at line 97 of file common-exceptions.c.
References current_catcher, catcher::prev, restore_cleanups(), catcher::saved_cleanup_chain, and xfree().
Referenced by exceptions_state_mc_catch().
|
static |
Definition at line 115 of file common-exceptions.c.
References _, CATCH_ITER, CATCH_ITER_1, CATCH_THROWING, CATCHER_ABORTING, CATCHER_CREATED, CATCHER_RUNNING, CATCHER_RUNNING_1, internal_error(), and catcher::state.
Referenced by exceptions_state_mc_action_iter(), exceptions_state_mc_action_iter_1(), and throw_exception().
int exceptions_state_mc_action_iter | ( | void | ) |
Definition at line 205 of file common-exceptions.c.
References CATCH_ITER, and exceptions_state_mc().
int exceptions_state_mc_action_iter_1 | ( | void | ) |
Definition at line 211 of file common-exceptions.c.
References CATCH_ITER_1, and exceptions_state_mc().
int exceptions_state_mc_catch | ( | struct gdb_exception * | exception, |
int | mask | ||
) |
Definition at line 180 of file common-exceptions.c.
References catcher_pop(), catcher::exception, gdb_exception::reason, RETURN_MASK, and throw_exception().
SIGJMP_BUF* exceptions_state_mc_init | ( | void | ) |
Definition at line 77 of file common-exceptions.c.
References catcher::buf, CATCHER_CREATED, current_catcher, catcher::exception, exception_none, catcher::prev, save_cleanups(), catcher::saved_cleanup_chain, and catcher::state.
Definition at line 371 of file common-exceptions.c.
References throw_verror().
Referenced by baseclass_offset(), call_function_by_hand_dummy(), call_site_find_chain_1(), call_site_for_pc(), call_site_to_target_addr(), create_sals_line_offset(), displaced_step_prepare(), dwarf2_frame_cfa(), dwarf_entry_parameter_to_value(), dwarf_expr_push_dwarf_reg_entry_value(), dwarf_expr_reg_to_entry_parameter(), find_method(), find_overload_match(), frame_unwind_pc(), frame_unwind_register(), func_addr_to_tail_call_list(), func_verify_no_selftailcall(), get_frame_func(), getpkt_or_notif_sane_1(), gnuv2_baseclass_offset(), interrupt_query(), linespec_expression_to_pc(), linespec_parse_basic(), linux_nat_attach(), memory_error(), mi_parse(), parse_probes(), readchar(), record_btrace_frame_prev_register(), regcache_read_pc(), remote_get_thread_local_address(), remote_insert_breakpoint(), require_available(), script_from_file(), spu_software_single_step(), symbol_not_found_error(), thread_db_get_thread_local_address(), throw_max_completions_reached_error(), throw_perror_with_name(), unexpected_linespec_error(), unpush_and_perror(), value_assign(), value_of_dwarf_block_entry(), value_struct_elt(), value_x_binop(), value_x_unop(), and write_pieced_value().
void throw_exception | ( | struct gdb_exception | exception | ) |
Definition at line 269 of file common-exceptions.c.
References all_cleanups(), catcher::buf, CATCH_THROWING, do_cleanups(), catcher::exception, exceptions_state_mc(), gdb_assert_not_reached, prepare_to_throw_exception(), gdb_exception::reason, RETURN_ERROR, RETURN_QUIT, and SIGLONGJMP.
Referenced by addr_string_to_sals(), amd64_epilogue_frame_cache(), amd64_frame_cache(), amd64_sigtramp_frame_cache(), append_ocl_sos(), ATTRIBUTE_PRINTF(), baseclass_offset(), call_function_by_hand_dummy(), call_site_find_chain(), catch_errors(), catch_exceptions_with_msg(), cmd_record_btrace_bts_start(), cmd_record_btrace_pt_start(), cmd_record_btrace_start(), compile_object_run(), create_breakpoint(), dwarf2_evaluate_loc_desc_full(), dwarf2_frame_cache(), evaluate_subexp_standard(), exceptions_state_mc_catch(), fetch_subexp_value(), find_linespec_symbols(), frame_unwind_pc(), frame_unwind_try_unwinder(), gdb_xml_parse(), get_frame_address_in_block_if_available(), get_frame_language(), get_frame_pc_if_available(), get_prev_frame_always(), i386_epilogue_frame_cache(), i386_frame_cache(), i386_sigtramp_frame_cache(), inferior_event_handler(), linux_resume_one_lwp(), parse_exp_in_context_1(), parse_linespec(), post_create_inferior(), process_next_line(), re_set_exception_catchpoint(), record_btrace_insert_breakpoint(), record_btrace_remove_breakpoint(), record_btrace_start_replaying(), remote_get_trace_status(), remote_kill(), remote_open_1(), resume_stopped_resumed_lwps(), rs6000_epilogue_frame_cache(), s390_frame_unwind_cache(), save_breakpoints(), target_translate_tls_address(), tfile_open(), types_deeply_equal(), value_rtti_indirect_type(), watch_command_1(), and write_gcore_file().
void throw_quit | ( | const char * | fmt, |
... | |||
) |
Definition at line 381 of file common-exceptions.c.
References throw_vquit().
Referenced by internal_verror(), and quit().
Definition at line 359 of file common-exceptions.c.
References RETURN_ERROR.
Referenced by gdb_xml_error(), mips_error(), throw_error(), and verror().
void throw_vquit | ( | const char * | fmt, |
va_list | ap | ||
) |
Definition at line 365 of file common-exceptions.c.
References GDB_NO_ERROR, and RETURN_QUIT.
Referenced by throw_quit().
|
static |
Definition at line 58 of file common-exceptions.c.
Referenced by catcher_pop(), and exceptions_state_mc_init().
|
static |
Definition at line 312 of file common-exceptions.c.
|
static |
Definition at line 315 of file common-exceptions.c.
Referenced by ATTRIBUTE_PRINTF().
const struct gdb_exception exception_none = { 0, GDB_NO_ERROR, NULL } |
Definition at line 23 of file common-exceptions.c.
Referenced by addr_string_to_sals(), bppy_set_condition(), catch_errors(), catch_exceptions_with_msg(), exceptions_state_mc_init(), gdbpy_decode_line(), gdbpy_parameter(), gdbscm_frame_read_var(), gdbscm_lookup_global_symbol(), gdbscm_lookup_symbol(), gdbscm_parameter_value(), gdbscm_register_breakpoint_x(), gdbscm_set_breakpoint_condition_x(), gdbscm_value_to_lazy_string(), infpy_search_memory(), infpy_write_memory(), mi_interpreter_exec(), parse_linespec(), run_inferior_call(), safe_execute_command(), types_deeply_equal(), valpy_getitem(), valpy_nonzero(), vlscm_rich_compare(), and write_gcore_file().