GDB (xrefs)
Classes | Macros | Enumerations | Functions | Variables
common-exceptions.h File Reference
#include <setjmp.h>
#include <new>

Go to the source code of this file.

Classes

struct  gdb_exception
 
struct  exception_try_scope
 
struct  gdb_exception_RETURN_MASK_ALL
 
struct  gdb_exception_RETURN_MASK_ERROR
 
struct  gdb_exception_RETURN_MASK_QUIT
 
struct  gdb_quit_bad_alloc
 

Macros

#define RETURN_MASK(reason)   (1 << (int)(-reason))
 
#define GDB_XCPT_SJMP   1
 
#define GDB_XCPT_TRY   2
 
#define GDB_XCPT_RAW_TRY   3
 
#define GDB_XCPT   GDB_XCPT_TRY
 
#define TRY_SJLJ
 
#define CATCH_SJLJ(EXCEPTION, MASK)
 
#define END_CATCH_SJLJ   }
 
#define TRY
 
#define CATCH(EXCEPTION, MASK)
 
#define END_CATCH
 

Enumerations

enum  return_reason { RETURN_QUIT = -2, RETURN_ERROR }
 
enum  return_mask { RETURN_MASK_QUIT = RETURN_MASK (RETURN_QUIT), RETURN_MASK_ERROR = RETURN_MASK (RETURN_ERROR), RETURN_MASK_ALL = (RETURN_MASK_QUIT | RETURN_MASK_ERROR) }
 
enum  errors {
  GDB_NO_ERROR, GENERIC_ERROR, NOT_FOUND_ERROR, TLS_NO_LIBRARY_SUPPORT_ERROR,
  TLS_LOAD_MODULE_NOT_FOUND_ERROR, TLS_NOT_ALLOCATED_YET_ERROR, TLS_GENERIC_ERROR, XML_PARSE_ERROR,
  MEMORY_ERROR, NOT_AVAILABLE_ERROR, OPTIMIZED_OUT_ERROR, NO_ENTRY_VALUE_ERROR,
  TARGET_CLOSE_ERROR, UNDEFINED_COMMAND_ERROR, NOT_SUPPORTED_ERROR, MAX_COMPLETIONS_REACHED_ERROR,
  NR_ERRORS
}
 

Functions

jmp_buf * exceptions_state_mc_init (void)
 
int exceptions_state_mc_action_iter (void)
 
int exceptions_state_mc_action_iter_1 (void)
 
int exceptions_state_mc_catch (struct gdb_exception *, int)
 
void * exception_try_scope_entry (void)
 
void exception_try_scope_exit (void *saved_state)
 
void exception_rethrow (void)
 
void throw_exception (struct gdb_exception exception) ATTRIBUTE_NORETURN
 
void throw_exception_sjlj (struct gdb_exception exception) ATTRIBUTE_NORETURN
 
void throw_verror (enum errors, const char *fmt, va_list ap) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF(2
 
void void throw_vquit (const char *fmt, va_list ap) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF(1
 
void void void throw_error (enum errors error, const char *fmt,...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF(2
 
void void void void throw_quit (const char *fmt,...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF(1
 

Variables

void void void void const struct gdb_exception exception_none
 

Macro Definition Documentation

◆ CATCH

#define CATCH (   EXCEPTION,
  MASK 
)
Value:
} while (0); \
} \
catch (struct gdb_exception ## _ ## MASK &EXCEPTION)
#define _(String)
Definition: gdb_locale.h:35
#define MASK(dcache, x)
Definition: dcache.c:90

Definition at line 254 of file common-exceptions.h.

Referenced by aarch64_make_prologue_cache(), aarch64_make_stub_cache(), ada_exception_message(), ada_exception_name_addr(), ada_tag_name(), ada_tag_value_at_base_address(), ada_to_fixed_type_1(), ada_val_print(), add_vsyscall_page(), adjust_value_for_child_access(), amd64_epilogue_frame_cache(), amd64_frame_cache(), amd64_sigtramp_frame_cache(), append_ocl_sos(), archpy_disassemble(), baseclass_offset(), bpfinishpy_detect_out_scope_cb(), bpfinishpy_init(), bpfinishpy_post_stop_hook(), bpfinishpy_pre_stop_hook(), bppy_delete_breakpoint(), bppy_get_commands(), bppy_init(), bppy_set_condition(), bppy_set_enabled(), bppy_set_ignore_count(), bppy_set_task(), bpstat_check_breakpoint_conditions(), bpstat_check_watchpoint(), breakpoint_notify(), breakpoint_re_set(), btrace_compute_ftrace(), btrace_compute_ftrace_bts(), btrace_enable(), c_describe_child(), call_site_find_chain(), captured_main(), catch_command_errors(), catch_errors(), check_exception_resume(), check_status_exception_catchpoint(), cmd_record_btrace_bts_start(), cmd_record_btrace_pt_start(), cmd_record_btrace_start(), cmdpy_init(), compile_object_run(), complete_command(), complete_expression(), complete_line_internal(), convert_explicit_location_to_linespec(), convert_value_from_python(), core_open(), cp_print_value(), cp_print_value_fields(), create_breakpoint(), create_excep_cond_exprs(), detach_one_lwp(), displaced_step_prepare(), do_gdb_disassembly(), do_one_display(), dtrace_process_dof_probe(), dump_symtab_1(), dwarf2_build_frame_info(), dwarf2_build_psymtabs(), dwarf2_evaluate_loc_desc_full(), dwarf2_frame_cache(), dwarf2_tailcall_sniffer_first(), enable_break(), enable_break2(), enable_breakpoint_disp(), enumerate_args(), enumerate_locals(), evaluate_funcall(), evaluate_subexp_standard(), evaluate_var_value(), event_location_to_sals(), execute_gdb_command(), fbsd_make_corefile_notes(), fetch_subexp_value(), find_linespec_symbols(), find_new_threads_once(), find_objc_msgcall_submethod(), frame_info_to_frame_object(), frame_unwind_pc(), frame_unwind_try_unwinder(), frapy_arch(), frapy_block(), frapy_find_sal(), frapy_function(), frapy_is_valid(), frapy_name(), frapy_newer(), frapy_older(), frapy_pc(), frapy_read_register(), frapy_read_var(), frapy_select(), frapy_type(), frapy_unwind_stop_reason(), ftrace_classify_insn(), gcc_convert_symbol(), gcc_symbol_address(), gdb_completion_word_break_characters(), gdb_main(), gdb_rl_attempted_completion_function(), gdb_rl_callback_handler(), gdb_xml_end_element_wrapper(), gdb_xml_start_element_wrapper(), gdbarch_skip_prologue_noexcept(), gdbpy_apply_frame_filter(), gdbpy_block_for_pc(), gdbpy_decode_line(), gdbpy_find_pc_line(), gdbpy_get_varobj_pretty_printer(), gdbpy_history(), gdbpy_lookup_global_symbol(), gdbpy_lookup_symbol(), gdbpy_newest_frame(), gdbpy_parameter(), gdbpy_parse_and_eval(), gdbpy_print_stack(), gdbpy_readline_wrapper(), gdbpy_selected_frame(), gdbpy_start_recording(), gdbpy_stop_recording(), gdbpy_write(), gdbscm_arch_disassemble(), gdbscm_breakpoint_commands(), gdbscm_delete_breakpoint_x(), gdbscm_find_pc_line(), gdbscm_frame_arch(), gdbscm_frame_block(), gdbscm_frame_function(), gdbscm_frame_name(), gdbscm_frame_newer(), gdbscm_frame_older(), gdbscm_frame_pc(), gdbscm_frame_read_register(), gdbscm_frame_read_var(), gdbscm_frame_sal(), gdbscm_frame_select(), gdbscm_frame_type(), gdbscm_frame_unwind_stop_reason(), gdbscm_frame_valid_p(), gdbscm_history_append_x(), gdbscm_history_ref(), gdbscm_lookup_block(), gdbscm_lookup_global_symbol(), gdbscm_lookup_symbol(), gdbscm_make_lazy_value(), gdbscm_newest_frame(), gdbscm_parameter_value(), gdbscm_parse_and_eval(), gdbscm_register_breakpoint_x(), gdbscm_register_command_x(), gdbscm_register_parameter_x(), gdbscm_selected_frame(), gdbscm_set_breakpoint_condition_x(), gdbscm_set_breakpoint_enabled_x(), gdbscm_set_breakpoint_ignore_count_x(), gdbscm_set_breakpoint_silent_x(), gdbscm_set_breakpoint_task_x(), gdbscm_symbol_needs_frame_p(), gdbscm_symbol_value(), gdbscm_type_const(), gdbscm_type_pointer(), gdbscm_type_reference(), gdbscm_type_sizeof(), gdbscm_type_strip_typedefs(), gdbscm_type_unqualified(), gdbscm_type_volatile(), gdbscm_value_address(), gdbscm_value_call(), gdbscm_value_dereference(), gdbscm_value_dynamic_type(), gdbscm_value_fetch_lazy_x(), gdbscm_value_field(), gdbscm_value_optimized_out_p(), gdbscm_value_print(), gdbscm_value_referenced_value(), gdbscm_value_subscript(), gdbscm_value_to_bool(), gdbscm_value_to_bytevector(), gdbscm_value_to_integer(), gdbscm_value_to_lazy_string(), gdbscm_value_to_real(), gdbscm_value_to_string(), generate_c_for_for_one_variable(), get_addr_from_python(), get_frame_address_in_block_if_available(), get_frame_language(), get_frame_pc_if_available(), get_prev_frame_always(), get_thread_current_frame(), i386_epilogue_frame_cache(), i386_frame_cache(), i386_linux_handle_segmentation_fault(), i386_sigtramp_frame_cache(), inferior_event_handler(), info_common_command_for_block(), info_frame_command(), infpy_read_memory(), infpy_search_memory(), infpy_thread_from_thread_handle(), infpy_threads(), infpy_write_memory(), insert_bp_location(), insert_exception_resume_breakpoint(), inspect_type(), install_new_value(), ioscm_write(), jit_reader_try_read_symtab(), keep_going_pass_signal(), linespec_complete(), linespec_complete_label(), linux_make_corefile_notes(), linux_nat_attach(), linux_resume_one_lwp(), list_arg_or_local(), location_to_sals(), lsscm_safe_lazy_string_to_value(), ltpy_get_pcs_for_line(), mi_execute_command(), mi_print_breakpoint_for_event(), normal_stop(), objfpy_add_separate_debug_file(), objfpy_get_build_id(), operator new(), parmpy_init(), parse_cmd_to_aexpr(), parse_cond_to_aexpr(), parse_exp_in_context_1(), parse_expression_for_completion(), parse_linespec(), pascal_object_print_value(), pending_framepy_read_register(), pending_framepy_str(), post_create_inferior(), ppc_linux_spe_context(), ppscm_pretty_print_one_value(), pretty_print_one_value(), print_frame(), print_frame_arg(), print_frame_local_vars(), print_one_vtable(), print_range(), print_return_value(), print_stack_frame(), print_variable_and_value(), process_next_line(), py_print_args(), py_print_frame(), py_print_single_arg(), py_print_type(), py_print_value(), pyuw_value_obj_to_pointer(), quit_force(), re_set_exception_catchpoint(), read_frame_arg(), read_frame_local(), record_btrace_enable_warn(), record_btrace_insert_breakpoint(), record_btrace_remove_breakpoint(), record_btrace_start_replaying(), record_full_message_wrapper_safe(), recpy_bt_goto(), recpy_bt_insn_data(), recpy_bt_insn_decoded(), recpy_bt_insn_sal(), reload_shared_libraries_1(), remote_enable_btrace(), remote_fileio_request(), remote_get_noisy_reply(), remote_get_trace_status(), remote_kill_k(), remote_open_1(), replace_typedefs(), restore_infcall_control_state(), resume(), resume_stopped_resumed_lwps(), rs6000_convert_from_func_ptr_addr(), rs6000_epilogue_frame_cache(), rs6000_frame_cache(), run_inferior_call(), selftests::run_tests(), s390_frame_unwind_cache(), safe_execute_command(), safe_parse_type(), save_breakpoints(), save_gdb_index_command(), script_from_file(), set_language_command(), should_stop_exception(), show_convenience(), solib_event_probe_action(), solib_read_symbols(), solib_svr4_r_ldsomap(), solib_svr4_r_map(), sparc64_linux_handle_segmentation_fault(), start_event_loop(), stpy_convert_to_value(), svr4_handle_solib_event(), sympy_needs_frame(), sympy_value(), target_translate_tls_address(), tfile_open(), thpy_switch(), thread_db_find_new_threads_silently(), try_open_exec_file(), tui_rl_switch_mode(), type_to_string(), types_deeply_equal(), typy_array_1(), typy_const(), typy_fields_items(), typy_get_composite(), typy_get_sizeof(), typy_legacy_template_argument(), typy_lookup_type(), typy_lookup_typename(), typy_pointer(), typy_reference(), typy_richcompare(), typy_str(), typy_strip_typedefs(), typy_template_argument(), typy_unqualified(), typy_volatile(), tyscm_array_1(), tyscm_equal_p_type_smob(), tyscm_get_composite(), tyscm_lookup_typename(), tyscm_type_name(), unwind_infopy_str(), update_breakpoint_locations(), update_global_location_list_nothrow(), update_solib_list(), val_print(), valpy_absolute(), valpy_binop(), valpy_call(), valpy_const_value(), valpy_dereference(), valpy_do_cast(), valpy_fetch_lazy(), valpy_float(), valpy_get_address(), valpy_get_dynamic_type(), valpy_get_is_lazy(), valpy_get_is_optimized_out(), valpy_getitem(), valpy_int(), valpy_invert(), valpy_lazy_string(), valpy_long(), valpy_negative(), valpy_nonzero(), valpy_reference_value(), valpy_referenced_value(), valpy_richcompare(), valpy_str(), valpy_string(), value_has_field(), value_of_root_1(), value_of_this_silent(), value_optimized_out(), value_rtti_indirect_type(), value_rtti_type(), value_struct_element_index(), varobj_create(), varobj_set_value(), vlscm_binop(), vlscm_convert_typed_value_from_scheme(), vlscm_do_cast(), vlscm_equal_p_value_smob(), vlscm_print_value_smob(), vlscm_rich_compare(), vlscm_unop(), and write_gcore_file().

◆ CATCH_SJLJ

#define CATCH_SJLJ (   EXCEPTION,
  MASK 
)
Value:
{ \
struct gdb_exception EXCEPTION; \
if (exceptions_state_mc_catch (&(EXCEPTION), MASK))
int exceptions_state_mc_catch(struct gdb_exception *, int)
#define MASK(dcache, x)
Definition: dcache.c:90

Definition at line 191 of file common-exceptions.h.

Referenced by gdb_rl_callback_read_char_wrapper_noexcept().

◆ END_CATCH

#define END_CATCH
Value:
catch (...) \
{ \
exception_rethrow (); \
} \
}

Definition at line 259 of file common-exceptions.h.

Referenced by aarch64_make_prologue_cache(), aarch64_make_stub_cache(), ada_exception_message(), ada_exception_name_addr(), ada_tag_name(), ada_tag_value_at_base_address(), ada_to_fixed_type_1(), ada_val_print(), add_vsyscall_page(), adjust_value_for_child_access(), amd64_epilogue_frame_cache(), amd64_frame_cache(), amd64_sigtramp_frame_cache(), append_ocl_sos(), archpy_disassemble(), baseclass_offset(), bpfinishpy_detect_out_scope_cb(), bpfinishpy_init(), bpfinishpy_post_stop_hook(), bpfinishpy_pre_stop_hook(), bppy_delete_breakpoint(), bppy_get_commands(), bppy_init(), bppy_set_condition(), bppy_set_enabled(), bppy_set_ignore_count(), bppy_set_task(), bpstat_check_breakpoint_conditions(), bpstat_check_watchpoint(), breakpoint_notify(), breakpoint_re_set(), btrace_compute_ftrace(), btrace_compute_ftrace_bts(), btrace_enable(), c_describe_child(), call_site_find_chain(), captured_main(), catch_command_errors(), catch_errors(), check_exception_resume(), check_status_exception_catchpoint(), cmd_record_btrace_bts_start(), cmd_record_btrace_pt_start(), cmd_record_btrace_start(), cmdpy_init(), compile_object_run(), complete_command(), complete_expression(), complete_line_internal(), convert_explicit_location_to_linespec(), convert_value_from_python(), core_open(), cp_print_value(), cp_print_value_fields(), create_breakpoint(), create_excep_cond_exprs(), detach_one_lwp(), displaced_step_prepare(), do_gdb_disassembly(), do_one_display(), dtrace_process_dof_probe(), dump_symtab_1(), dwarf2_build_frame_info(), dwarf2_build_psymtabs(), dwarf2_evaluate_loc_desc_full(), dwarf2_frame_cache(), dwarf2_tailcall_sniffer_first(), enable_break(), enable_break2(), enable_breakpoint_disp(), enumerate_args(), enumerate_locals(), evaluate_funcall(), evaluate_subexp_standard(), evaluate_var_value(), event_location_to_sals(), execute_gdb_command(), fbsd_make_corefile_notes(), fetch_subexp_value(), find_linespec_symbols(), find_new_threads_once(), find_objc_msgcall_submethod(), frame_info_to_frame_object(), frame_unwind_pc(), frame_unwind_try_unwinder(), frapy_arch(), frapy_block(), frapy_find_sal(), frapy_function(), frapy_is_valid(), frapy_name(), frapy_newer(), frapy_older(), frapy_pc(), frapy_read_register(), frapy_read_var(), frapy_select(), frapy_type(), frapy_unwind_stop_reason(), ftrace_classify_insn(), gcc_convert_symbol(), gcc_symbol_address(), gdb_completion_word_break_characters(), gdb_main(), gdb_rl_attempted_completion_function(), gdb_rl_callback_handler(), gdb_xml_end_element_wrapper(), gdb_xml_start_element_wrapper(), gdbarch_skip_prologue_noexcept(), gdbpy_apply_frame_filter(), gdbpy_block_for_pc(), gdbpy_decode_line(), gdbpy_find_pc_line(), gdbpy_get_varobj_pretty_printer(), gdbpy_history(), gdbpy_lookup_global_symbol(), gdbpy_lookup_symbol(), gdbpy_newest_frame(), gdbpy_parameter(), gdbpy_parse_and_eval(), gdbpy_print_stack(), gdbpy_readline_wrapper(), gdbpy_selected_frame(), gdbpy_start_recording(), gdbpy_stop_recording(), gdbpy_write(), gdbscm_arch_disassemble(), gdbscm_breakpoint_commands(), gdbscm_delete_breakpoint_x(), gdbscm_find_pc_line(), gdbscm_frame_arch(), gdbscm_frame_block(), gdbscm_frame_function(), gdbscm_frame_name(), gdbscm_frame_newer(), gdbscm_frame_older(), gdbscm_frame_pc(), gdbscm_frame_read_register(), gdbscm_frame_read_var(), gdbscm_frame_sal(), gdbscm_frame_select(), gdbscm_frame_type(), gdbscm_frame_unwind_stop_reason(), gdbscm_frame_valid_p(), gdbscm_history_append_x(), gdbscm_history_ref(), gdbscm_lookup_block(), gdbscm_lookup_global_symbol(), gdbscm_lookup_symbol(), gdbscm_make_lazy_value(), gdbscm_newest_frame(), gdbscm_parameter_value(), gdbscm_parse_and_eval(), gdbscm_register_breakpoint_x(), gdbscm_register_command_x(), gdbscm_register_parameter_x(), gdbscm_selected_frame(), gdbscm_set_breakpoint_condition_x(), gdbscm_set_breakpoint_enabled_x(), gdbscm_set_breakpoint_ignore_count_x(), gdbscm_set_breakpoint_silent_x(), gdbscm_set_breakpoint_task_x(), gdbscm_symbol_needs_frame_p(), gdbscm_symbol_value(), gdbscm_type_const(), gdbscm_type_pointer(), gdbscm_type_reference(), gdbscm_type_sizeof(), gdbscm_type_strip_typedefs(), gdbscm_type_unqualified(), gdbscm_type_volatile(), gdbscm_value_address(), gdbscm_value_call(), gdbscm_value_dereference(), gdbscm_value_dynamic_type(), gdbscm_value_fetch_lazy_x(), gdbscm_value_field(), gdbscm_value_optimized_out_p(), gdbscm_value_print(), gdbscm_value_referenced_value(), gdbscm_value_subscript(), gdbscm_value_to_bool(), gdbscm_value_to_bytevector(), gdbscm_value_to_integer(), gdbscm_value_to_lazy_string(), gdbscm_value_to_real(), gdbscm_value_to_string(), generate_c_for_for_one_variable(), get_addr_from_python(), get_frame_address_in_block_if_available(), get_frame_language(), get_frame_pc_if_available(), get_prev_frame_always(), get_thread_current_frame(), i386_epilogue_frame_cache(), i386_frame_cache(), i386_linux_handle_segmentation_fault(), i386_sigtramp_frame_cache(), inferior_event_handler(), info_common_command_for_block(), info_frame_command(), infpy_read_memory(), infpy_search_memory(), infpy_thread_from_thread_handle(), infpy_threads(), infpy_write_memory(), insert_bp_location(), insert_exception_resume_breakpoint(), inspect_type(), install_new_value(), ioscm_write(), jit_reader_try_read_symtab(), keep_going_pass_signal(), linespec_complete(), linespec_complete_label(), linux_make_corefile_notes(), linux_nat_attach(), linux_resume_one_lwp(), list_arg_or_local(), location_to_sals(), lsscm_safe_lazy_string_to_value(), ltpy_get_pcs_for_line(), mi_execute_command(), mi_print_breakpoint_for_event(), normal_stop(), objfpy_add_separate_debug_file(), objfpy_get_build_id(), operator new(), parmpy_init(), parse_cmd_to_aexpr(), parse_cond_to_aexpr(), parse_exp_in_context_1(), parse_expression_for_completion(), parse_linespec(), pascal_object_print_value(), pending_framepy_read_register(), pending_framepy_str(), post_create_inferior(), ppc_linux_spe_context(), ppscm_pretty_print_one_value(), pretty_print_one_value(), print_frame(), print_frame_arg(), print_frame_local_vars(), print_one_vtable(), print_range(), print_return_value(), print_stack_frame(), print_variable_and_value(), process_next_line(), py_print_args(), py_print_frame(), py_print_single_arg(), py_print_type(), py_print_value(), pyuw_value_obj_to_pointer(), quit_force(), re_set_exception_catchpoint(), read_frame_arg(), read_frame_local(), record_btrace_enable_warn(), record_btrace_insert_breakpoint(), record_btrace_remove_breakpoint(), record_btrace_start_replaying(), record_full_message_wrapper_safe(), recpy_bt_goto(), recpy_bt_insn_data(), recpy_bt_insn_decoded(), recpy_bt_insn_sal(), reload_shared_libraries_1(), remote_enable_btrace(), remote_fileio_request(), remote_get_noisy_reply(), remote_get_trace_status(), remote_kill_k(), remote_open_1(), replace_typedefs(), restore_infcall_control_state(), resume(), resume_stopped_resumed_lwps(), rs6000_convert_from_func_ptr_addr(), rs6000_epilogue_frame_cache(), rs6000_frame_cache(), run_inferior_call(), selftests::run_tests(), s390_frame_unwind_cache(), safe_execute_command(), safe_parse_type(), save_breakpoints(), save_gdb_index_command(), script_from_file(), set_language_command(), should_stop_exception(), show_convenience(), solib_event_probe_action(), solib_read_symbols(), solib_svr4_r_ldsomap(), solib_svr4_r_map(), sparc64_linux_handle_segmentation_fault(), start_event_loop(), stpy_convert_to_value(), svr4_handle_solib_event(), sympy_needs_frame(), sympy_value(), target_translate_tls_address(), tfile_open(), thpy_switch(), thread_db_find_new_threads_silently(), try_open_exec_file(), tui_rl_switch_mode(), type_to_string(), types_deeply_equal(), typy_array_1(), typy_const(), typy_fields_items(), typy_get_composite(), typy_get_sizeof(), typy_legacy_template_argument(), typy_lookup_type(), typy_lookup_typename(), typy_pointer(), typy_reference(), typy_richcompare(), typy_str(), typy_strip_typedefs(), typy_template_argument(), typy_unqualified(), typy_volatile(), tyscm_array_1(), tyscm_equal_p_type_smob(), tyscm_get_composite(), tyscm_lookup_typename(), tyscm_type_name(), unwind_infopy_str(), update_breakpoint_locations(), update_global_location_list_nothrow(), update_solib_list(), val_print(), valpy_absolute(), valpy_binop(), valpy_call(), valpy_const_value(), valpy_dereference(), valpy_do_cast(), valpy_fetch_lazy(), valpy_float(), valpy_get_address(), valpy_get_dynamic_type(), valpy_get_is_lazy(), valpy_get_is_optimized_out(), valpy_getitem(), valpy_int(), valpy_invert(), valpy_lazy_string(), valpy_long(), valpy_negative(), valpy_nonzero(), valpy_reference_value(), valpy_referenced_value(), valpy_richcompare(), valpy_str(), valpy_string(), value_has_field(), value_of_root_1(), value_of_this_silent(), value_optimized_out(), value_rtti_indirect_type(), value_rtti_type(), value_struct_element_index(), varobj_create(), varobj_set_value(), vlscm_binop(), vlscm_convert_typed_value_from_scheme(), vlscm_do_cast(), vlscm_equal_p_value_smob(), vlscm_print_value_smob(), vlscm_rich_compare(), vlscm_unop(), and write_gcore_file().

◆ END_CATCH_SJLJ

#define END_CATCH_SJLJ   }

Definition at line 196 of file common-exceptions.h.

Referenced by gdb_rl_callback_read_char_wrapper_noexcept().

◆ GDB_XCPT

#define GDB_XCPT   GDB_XCPT_TRY

Definition at line 132 of file common-exceptions.h.

◆ GDB_XCPT_RAW_TRY

#define GDB_XCPT_RAW_TRY   3

Definition at line 130 of file common-exceptions.h.

◆ GDB_XCPT_SJMP

#define GDB_XCPT_SJMP   1

Definition at line 121 of file common-exceptions.h.

◆ GDB_XCPT_TRY

#define GDB_XCPT_TRY   2

Definition at line 124 of file common-exceptions.h.

◆ RETURN_MASK

#define RETURN_MASK (   reason)    (1 << (int)(-reason))

Definition at line 38 of file common-exceptions.h.

Referenced by exceptions_state_mc_catch().

◆ TRY

#define TRY
Value:
{ \
try \
{ \
exception_try_scope exception_try_scope_instance; \
do \
{

Definition at line 246 of file common-exceptions.h.

Referenced by aarch64_make_prologue_cache(), aarch64_make_stub_cache(), ada_exception_message(), ada_exception_name_addr(), ada_tag_name(), ada_tag_value_at_base_address(), ada_to_fixed_type_1(), ada_val_print(), add_vsyscall_page(), adjust_value_for_child_access(), amd64_epilogue_frame_cache(), amd64_frame_cache(), amd64_sigtramp_frame_cache(), append_ocl_sos(), archpy_disassemble(), baseclass_offset(), bpfinishpy_detect_out_scope_cb(), bpfinishpy_init(), bpfinishpy_post_stop_hook(), bpfinishpy_pre_stop_hook(), bppy_delete_breakpoint(), bppy_get_commands(), bppy_init(), bppy_set_condition(), bppy_set_enabled(), bppy_set_ignore_count(), bppy_set_task(), bpstat_check_breakpoint_conditions(), bpstat_check_watchpoint(), breakpoint_notify(), breakpoint_re_set(), btrace_compute_ftrace(), btrace_compute_ftrace_bts(), btrace_enable(), c_describe_child(), call_site_find_chain(), captured_main(), catch_command_errors(), catch_errors(), check_exception_resume(), check_status_exception_catchpoint(), cmd_record_btrace_bts_start(), cmd_record_btrace_pt_start(), cmd_record_btrace_start(), cmdpy_init(), compile_object_run(), complete_command(), complete_expression(), complete_line_internal(), convert_explicit_location_to_linespec(), convert_value_from_python(), core_open(), cp_print_value(), cp_print_value_fields(), create_breakpoint(), create_excep_cond_exprs(), detach_one_lwp(), displaced_step_prepare(), do_gdb_disassembly(), do_one_display(), dtrace_process_dof_probe(), dump_symtab_1(), dwarf2_build_frame_info(), dwarf2_build_psymtabs(), dwarf2_evaluate_loc_desc_full(), dwarf2_frame_cache(), dwarf2_tailcall_sniffer_first(), enable_break(), enable_break2(), enable_breakpoint_disp(), enumerate_args(), enumerate_locals(), evaluate_funcall(), evaluate_subexp_standard(), evaluate_var_value(), event_location_to_sals(), execute_gdb_command(), fbsd_make_corefile_notes(), fetch_subexp_value(), find_linespec_symbols(), find_new_threads_once(), find_objc_msgcall_submethod(), frame_info_to_frame_object(), frame_unwind_pc(), frame_unwind_try_unwinder(), frapy_arch(), frapy_block(), frapy_find_sal(), frapy_function(), frapy_is_valid(), frapy_name(), frapy_newer(), frapy_older(), frapy_pc(), frapy_read_register(), frapy_read_var(), frapy_select(), frapy_type(), frapy_unwind_stop_reason(), frscm_scm_from_frame(), ftrace_classify_insn(), gcc_convert_symbol(), gcc_symbol_address(), gdb_completion_word_break_characters(), gdb_main(), gdb_rl_attempted_completion_function(), gdb_rl_callback_handler(), gdb_xml_end_element_wrapper(), gdb_xml_start_element_wrapper(), gdbarch_skip_prologue_noexcept(), gdbpy_apply_frame_filter(), gdbpy_block_for_pc(), gdbpy_decode_line(), gdbpy_find_pc_line(), gdbpy_get_varobj_pretty_printer(), gdbpy_history(), gdbpy_lookup_global_symbol(), gdbpy_lookup_symbol(), gdbpy_newest_frame(), gdbpy_parameter(), gdbpy_parse_and_eval(), gdbpy_print_stack(), gdbpy_readline_wrapper(), gdbpy_selected_frame(), gdbpy_start_recording(), gdbpy_stop_recording(), gdbpy_write(), gdbscm_arch_disassemble(), gdbscm_breakpoint_commands(), gdbscm_delete_breakpoint_x(), gdbscm_find_pc_line(), gdbscm_frame_arch(), gdbscm_frame_block(), gdbscm_frame_function(), gdbscm_frame_name(), gdbscm_frame_newer(), gdbscm_frame_older(), gdbscm_frame_pc(), gdbscm_frame_read_register(), gdbscm_frame_read_var(), gdbscm_frame_sal(), gdbscm_frame_select(), gdbscm_frame_type(), gdbscm_frame_unwind_stop_reason(), gdbscm_frame_valid_p(), gdbscm_history_append_x(), gdbscm_history_ref(), gdbscm_lookup_block(), gdbscm_lookup_global_symbol(), gdbscm_lookup_symbol(), gdbscm_make_lazy_value(), gdbscm_newest_frame(), gdbscm_parameter_value(), gdbscm_parse_and_eval(), gdbscm_register_breakpoint_x(), gdbscm_register_command_x(), gdbscm_register_parameter_x(), gdbscm_selected_frame(), gdbscm_set_breakpoint_condition_x(), gdbscm_set_breakpoint_enabled_x(), gdbscm_set_breakpoint_ignore_count_x(), gdbscm_set_breakpoint_silent_x(), gdbscm_set_breakpoint_task_x(), gdbscm_symbol_needs_frame_p(), gdbscm_symbol_value(), gdbscm_type_const(), gdbscm_type_pointer(), gdbscm_type_reference(), gdbscm_type_sizeof(), gdbscm_type_strip_typedefs(), gdbscm_type_unqualified(), gdbscm_type_volatile(), gdbscm_value_address(), gdbscm_value_call(), gdbscm_value_dereference(), gdbscm_value_dynamic_type(), gdbscm_value_fetch_lazy_x(), gdbscm_value_field(), gdbscm_value_optimized_out_p(), gdbscm_value_print(), gdbscm_value_referenced_value(), gdbscm_value_subscript(), gdbscm_value_to_bool(), gdbscm_value_to_bytevector(), gdbscm_value_to_integer(), gdbscm_value_to_lazy_string(), gdbscm_value_to_real(), gdbscm_value_to_string(), generate_c_for_for_one_variable(), get_addr_from_python(), get_frame_address_in_block_if_available(), get_frame_language(), get_frame_pc_if_available(), get_prev_frame_always(), get_thread_current_frame(), i386_epilogue_frame_cache(), i386_frame_cache(), i386_linux_handle_segmentation_fault(), i386_sigtramp_frame_cache(), inferior_event_handler(), info_common_command_for_block(), info_frame_command(), infpy_read_memory(), infpy_search_memory(), infpy_thread_from_thread_handle(), infpy_threads(), infpy_write_memory(), insert_bp_location(), insert_exception_resume_breakpoint(), inspect_type(), install_new_value(), ioscm_write(), jit_reader_try_read_symtab(), keep_going_pass_signal(), linespec_complete(), linespec_complete_label(), linux_make_corefile_notes(), linux_nat_attach(), linux_resume_one_lwp(), list_arg_or_local(), location_to_sals(), lsscm_safe_lazy_string_to_value(), ltpy_get_pcs_for_line(), mi_execute_command(), mi_print_breakpoint_for_event(), normal_stop(), objfpy_add_separate_debug_file(), objfpy_get_build_id(), operator new(), parmpy_init(), parse_cmd_to_aexpr(), parse_cond_to_aexpr(), parse_exp_in_context_1(), parse_expression_for_completion(), parse_linespec(), pascal_object_print_value(), pending_framepy_read_register(), pending_framepy_str(), post_create_inferior(), ppc_linux_spe_context(), ppscm_pretty_print_one_value(), pretty_print_one_value(), print_frame(), print_frame_arg(), print_frame_local_vars(), print_one_vtable(), print_range(), print_return_value(), print_stack_frame(), print_variable_and_value(), process_next_line(), py_print_args(), py_print_frame(), py_print_single_arg(), py_print_type(), py_print_value(), pyuw_value_obj_to_pointer(), quit_force(), re_set_exception_catchpoint(), read_frame_arg(), read_frame_local(), record_btrace_enable_warn(), record_btrace_insert_breakpoint(), record_btrace_remove_breakpoint(), record_btrace_start_replaying(), record_full_message_wrapper_safe(), recpy_bt_goto(), recpy_bt_insn_data(), recpy_bt_insn_decoded(), recpy_bt_insn_sal(), reload_shared_libraries_1(), remote_enable_btrace(), remote_fileio_request(), remote_get_noisy_reply(), remote_get_trace_status(), remote_kill_k(), remote_open_1(), replace_typedefs(), restore_infcall_control_state(), resume(), resume_stopped_resumed_lwps(), rs6000_convert_from_func_ptr_addr(), rs6000_epilogue_frame_cache(), rs6000_frame_cache(), run_inferior_call(), selftests::run_tests(), s390_frame_unwind_cache(), safe_execute_command(), safe_parse_type(), save_breakpoints(), save_gdb_index_command(), script_from_file(), set_language_command(), should_stop_exception(), show_convenience(), solib_event_probe_action(), solib_read_symbols(), solib_svr4_r_ldsomap(), solib_svr4_r_map(), sparc64_linux_handle_segmentation_fault(), start_event_loop(), stpy_convert_to_value(), svr4_handle_solib_event(), sympy_needs_frame(), sympy_value(), target_translate_tls_address(), tfile_open(), thpy_switch(), thread_db_find_new_threads_silently(), try_open_exec_file(), tui_rl_switch_mode(), type_to_string(), types_deeply_equal(), typy_array_1(), typy_const(), typy_fields_items(), typy_get_composite(), typy_get_sizeof(), typy_legacy_template_argument(), typy_lookup_type(), typy_lookup_typename(), typy_pointer(), typy_reference(), typy_richcompare(), typy_str(), typy_strip_typedefs(), typy_template_argument(), typy_unqualified(), typy_volatile(), tyscm_array_1(), tyscm_equal_p_type_smob(), tyscm_get_composite(), tyscm_lookup_typename(), tyscm_type_name(), unwind_infopy_str(), update_breakpoint_locations(), update_global_location_list_nothrow(), update_solib_list(), val_print(), valpy_absolute(), valpy_binop(), valpy_call(), valpy_const_value(), valpy_dereference(), valpy_do_cast(), valpy_fetch_lazy(), valpy_float(), valpy_get_address(), valpy_get_dynamic_type(), valpy_get_is_lazy(), valpy_get_is_optimized_out(), valpy_getitem(), valpy_int(), valpy_invert(), valpy_lazy_string(), valpy_long(), valpy_negative(), valpy_nonzero(), valpy_reference_value(), valpy_referenced_value(), valpy_richcompare(), valpy_str(), valpy_string(), value_has_field(), value_of_root_1(), value_of_this_silent(), value_optimized_out(), value_rtti_indirect_type(), value_rtti_type(), value_struct_element_index(), varobj_create(), varobj_set_value(), vlscm_binop(), vlscm_convert_typed_value_from_scheme(), vlscm_do_cast(), vlscm_equal_p_value_smob(), vlscm_print_value_smob(), vlscm_rich_compare(), vlscm_unop(), and write_gcore_file().

◆ TRY_SJLJ

#define TRY_SJLJ
Value:
{ \
jmp_buf *buf = \
exceptions_state_mc_init (); \
setjmp (*buf); \
} \
int exceptions_state_mc_action_iter(void)
int exceptions_state_mc_action_iter_1(void)

Definition at line 182 of file common-exceptions.h.

Referenced by gdb_rl_callback_read_char_wrapper_noexcept().

Enumeration Type Documentation

◆ errors

enum errors
Enumerator
GDB_NO_ERROR 
GENERIC_ERROR 
NOT_FOUND_ERROR 
TLS_NO_LIBRARY_SUPPORT_ERROR 
TLS_LOAD_MODULE_NOT_FOUND_ERROR 
TLS_NOT_ALLOCATED_YET_ERROR 
TLS_GENERIC_ERROR 
XML_PARSE_ERROR 
MEMORY_ERROR 
NOT_AVAILABLE_ERROR 
OPTIMIZED_OUT_ERROR 
NO_ENTRY_VALUE_ERROR 
TARGET_CLOSE_ERROR 
UNDEFINED_COMMAND_ERROR 
NOT_SUPPORTED_ERROR 
MAX_COMPLETIONS_REACHED_ERROR 
NR_ERRORS 

Definition at line 49 of file common-exceptions.h.

◆ return_mask

Enumerator
RETURN_MASK_QUIT 
RETURN_MASK_ERROR 
RETURN_MASK_ALL 

Definition at line 40 of file common-exceptions.h.

◆ return_reason

Enumerator
RETURN_QUIT 
RETURN_ERROR 

Definition at line 30 of file common-exceptions.h.

Function Documentation

◆ exception_rethrow()

void exception_rethrow ( void  )

Definition at line 249 of file common-exceptions.c.

References all_cleanups(), and do_cleanups().

◆ exception_try_scope_entry()

void* exception_try_scope_entry ( void  )

Definition at line 228 of file common-exceptions.c.

References save_cleanups(), and try_scope_depth.

Referenced by exception_try_scope::exception_try_scope().

◆ exception_try_scope_exit()

void exception_try_scope_exit ( void *  saved_state)

Definition at line 238 of file common-exceptions.c.

References restore_cleanups(), and try_scope_depth.

Referenced by exception_try_scope::~exception_try_scope().

◆ exceptions_state_mc_action_iter()

int exceptions_state_mc_action_iter ( void  )

Definition at line 207 of file common-exceptions.c.

References CATCH_ITER, and exceptions_state_mc().

◆ exceptions_state_mc_action_iter_1()

int exceptions_state_mc_action_iter_1 ( void  )

Definition at line 213 of file common-exceptions.c.

References CATCH_ITER_1, and exceptions_state_mc().

◆ exceptions_state_mc_catch()

int exceptions_state_mc_catch ( struct gdb_exception ,
int   
)

◆ exceptions_state_mc_init()

jmp_buf* exceptions_state_mc_init ( void  )

◆ throw_error()

void void void throw_error ( enum errors  error,
const char *  fmt,
  ... 
)

◆ throw_exception()

void throw_exception ( struct gdb_exception  exception)

Definition at line 312 of file common-exceptions.c.

References catcher::exception, throw_exception_cxx(), and throw_exception_sjlj().

Referenced by aarch64_make_prologue_cache(), aarch64_make_stub_cache(), amd64_epilogue_frame_cache(), amd64_frame_cache(), amd64_sigtramp_frame_cache(), append_ocl_sos(), ATTRIBUTE_PRINTF(), baseclass_offset(), btrace_compute_ftrace(), btrace_enable(), call_function_by_hand_dummy(), call_site_find_chain(), cmd_record_btrace_bts_start(), cmd_record_btrace_pt_start(), cmd_record_btrace_start(), compile_object_run(), complete_line_internal(), create_breakpoint(), detach_one_lwp(), displaced_step_prepare(), dwarf2_evaluate_loc_desc_full(), dwarf2_frame_cache(), evaluate_funcall(), evaluate_subexp_standard(), evaluate_var_value(), event_location_to_sals(), fetch_subexp_value(), find_linespec_symbols(), frame_unwind_pc(), frame_unwind_try_unwinder(), gdb_rl_callback_read_char_wrapper(), get_frame_address_in_block_if_available(), get_frame_language(), get_frame_pc_if_available(), get_prev_frame_always(), get_thread_current_frame(), i386_epilogue_frame_cache(), i386_frame_cache(), i386_sigtramp_frame_cache(), inferior_event_handler(), linux_resume_one_lwp(), location_to_sals(), gdb_xml_parser::parse(), parse_exp_in_context_1(), parse_linespec(), post_create_inferior(), print_frame_local_vars(), 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_k(), remote_open_1(), resume(), resume_stopped_resumed_lwps(), rs6000_epilogue_frame_cache(), rs6000_frame_cache(), s390_frame_unwind_cache(), save_breakpoints(), target_translate_tls_address(), tfile_open(), types_deeply_equal(), value_rtti_indirect_type(), and write_gcore_file().

◆ throw_exception_sjlj()

void throw_exception_sjlj ( struct gdb_exception  exception)

◆ throw_quit()

void void void void throw_quit ( const char *  fmt,
  ... 
)

◆ throw_verror()

void throw_verror ( enum errors  ,
const char *  fmt,
va_list  ap 
)

◆ throw_vquit()

void void throw_vquit ( const char *  fmt,
va_list  ap 
)

Variable Documentation

◆ exception_none

void void void void const struct gdb_exception exception_none