GDB (xrefs)
|
#include "defs.h"
#include "arch-utils.h"
#include <ctype.h>
#include "breakpoint.h"
#include "gdbcmd.h"
#include "inferior.h"
#include "annotate.h"
#include "valprint.h"
#include "cli/cli-utils.h"
#include "completer.h"
#include "gdb_obstack.h"
#include "mi/mi-common.h"
#include "linespec.h"
#include "probe.h"
#include "objfiles.h"
#include "cp-abi.h"
#include "gdb_regex.h"
#include "cp-support.h"
Go to the source code of this file.
Classes | |
struct | exception_names |
struct | exception_catchpoint |
Enumerations | |
enum | exception_event_kind { EX_EVENT_THROW, EX_EVENT_RETHROW, EX_EVENT_CATCH, EX_EVENT_THROW, EX_EVENT_RETHROW, EX_EVENT_CATCH } |
Variables | |
static const struct exception_names | exception_functions [] |
static struct breakpoint_ops | gnu_v3_exception_catchpoint_ops |
static const struct internalvar_funcs | exception_funcs |
initialize_file_ftype | _initialize_break_catch_throw |
enum exception_event_kind |
Enumerator | |
---|---|
EX_EVENT_THROW | |
EX_EVENT_RETHROW | |
EX_EVENT_CATCH | |
EX_EVENT_THROW | |
EX_EVENT_RETHROW | |
EX_EVENT_CATCH |
Definition at line 40 of file break-catch-throw.c.
void _initialize_break_catch_throw | ( | void | ) |
Definition at line 576 of file break-catch-throw.c.
References _, add_catch_command(), catch_catch_command(), CATCH_PERMANENT, catch_rethrow_command(), CATCH_TEMPORARY, catch_throw_command(), create_internalvar_type_lazy(), and initialize_throw_catchpoint_ops().
|
static |
Definition at line 494 of file break-catch-throw.c.
References catch_exception_command_1(), CATCH_TEMPORARY, EX_EVENT_CATCH, and get_cmd_context().
Referenced by _initialize_break_catch_throw().
|
static |
Definition at line 461 of file break-catch-throw.c.
References _, discard_cleanups(), ep_parse_optional_if_clause(), error(), EX_EVENT_CATCH, EX_EVENT_RETHROW, EX_EVENT_THROW, extract_exception_regexp(), handle_gnu_v3_exceptions(), make_cleanup(), skip_spaces(), and xfree().
Referenced by catch_catch_command(), catch_rethrow_command(), and catch_throw_command().
|
static |
Definition at line 514 of file break-catch-throw.c.
References catch_exception_command_1(), CATCH_TEMPORARY, EX_EVENT_RETHROW, and get_cmd_context().
Referenced by _initialize_break_catch_throw().
|
static |
Definition at line 504 of file break-catch-throw.c.
References catch_exception_command_1(), CATCH_TEMPORARY, EX_EVENT_THROW, and get_cmd_context().
Referenced by _initialize_break_catch_throw().
|
static |
Definition at line 161 of file break-catch-throw.c.
References bkpt_breakpoint_ops, bpstats::breakpoint_at, CATCH, breakpoint_ops::check_status, cp_canonicalize_string(), cplus_typename_from_type_info(), END_CATCH, exception_print(), fetch_probe_arguments(), gdb_stderr, RETURN_MASK_ERROR, bpstats::stop, TRY, and xfree().
Referenced by initialize_throw_catchpoint_ops().
|
static |
Definition at line 138 of file break-catch-throw.c.
References exception_catchpoint::kind.
Referenced by print_it_exception_catchpoint(), print_mention_exception_catchpoint(), print_one_exception_catchpoint(), print_recreate_exception_catchpoint(), and re_set_exception_catchpoint().
|
static |
Definition at line 528 of file break-catch-throw.c.
References cplus_type_from_type_info(), fetch_probe_arguments(), make_pointer_type(), value_cast(), and value_ind().
|
static |
Definition at line 148 of file break-catch-throw.c.
References bkpt_breakpoint_ops, breakpoint_ops::dtor, exception_catchpoint::exception_rx, exception_catchpoint::pattern, and xfree().
Referenced by initialize_throw_catchpoint_ops().
|
static |
Definition at line 429 of file break-catch-throw.c.
References check_for_argument(), savestring(), skip_spaces(), and skip_to_space.
Referenced by catch_exception_command_1().
Definition at line 104 of file break-catch-throw.c.
References _, error(), evaluate_probe_argument(), find_probe_by_pc(), get_frame_pc(), get_probe_argument_count(), get_selected_frame(), probe::name, bound_probe::probe, and probe::provider.
Referenced by check_status_exception_catchpoint(), and compute_exception().
|
static |
Definition at line 384 of file break-catch-throw.c.
References _, exception_catchpoint::base, bp_breakpoint, compile_rx_or_error(), discard_cleanups(), exception_catchpoint::exception_rx, get_current_arch(), gnu_v3_exception_catchpoint_ops, init_catchpoint(), install_breakpoint(), exception_catchpoint::kind, make_cleanup(), null_cleanup(), exception_catchpoint::pattern, re_set_exception_catchpoint(), breakpoint::type, and xfree().
Referenced by catch_exception_command_1().
|
static |
Definition at line 554 of file break-catch-throw.c.
References bkpt_breakpoint_ops, breakpoint_ops::check_status, check_status_exception_catchpoint(), breakpoint_ops::dtor, dtor_exception_catchpoint(), gnu_v3_exception_catchpoint_ops, initialize_breakpoint_ops(), breakpoint_ops::print_it, print_it_exception_catchpoint(), breakpoint_ops::print_mention, print_mention_exception_catchpoint(), breakpoint_ops::print_one, breakpoint_ops::print_one_detail, print_one_detail_exception_catchpoint(), print_one_exception_catchpoint(), breakpoint_ops::print_recreate, print_recreate_exception_catchpoint(), breakpoint_ops::re_set, and re_set_exception_catchpoint().
Referenced by _initialize_break_catch_throw().
|
static |
Definition at line 250 of file break-catch-throw.c.
References annotate_catchpoint(), async_reason_lookup(), bpdisp_text(), bpstats::breakpoint_at, classify_exception_breakpoint(), current_uiout, disp_del, breakpoint::disposition, EX_EVENT_CATCH, EX_EVENT_THROW, EXEC_ASYNC_BREAKPOINT_HIT, breakpoint::number, PRINT_SRC_AND_LOC, ui_out_field_int(), ui_out_field_string(), ui_out_is_mi_like_p(), and ui_out_text().
Referenced by initialize_throw_catchpoint_ops().
|
static |
Definition at line 341 of file break-catch-throw.c.
References _, classify_exception_breakpoint(), current_uiout, disp_del, breakpoint::disposition, EX_EVENT_CATCH, EX_EVENT_THROW, breakpoint::number, ui_out_field_int(), and ui_out_text().
Referenced by initialize_throw_catchpoint_ops().
|
static |
Definition at line 326 of file break-catch-throw.c.
References _, exception_catchpoint::exception_rx, ui_out_field_string(), and ui_out_text().
Referenced by initialize_throw_catchpoint_ops().
|
static |
Definition at line 280 of file break-catch-throw.c.
References bp_location::address, value_print_options::addressprint, annotate_field(), classify_exception_breakpoint(), current_uiout, EX_EVENT_CATCH, EX_EVENT_RETHROW, EX_EVENT_THROW, bp_location::gdbarch, get_user_print_options(), breakpoint::loc, bp_location::shlib_disabled, ui_out_field_core_addr(), ui_out_field_string(), and ui_out_is_mi_like_p().
Referenced by initialize_throw_catchpoint_ops().
|
static |
Definition at line 360 of file break-catch-throw.c.
References classify_exception_breakpoint(), disp_del, breakpoint::disposition, EX_EVENT_CATCH, EX_EVENT_RETHROW, EX_EVENT_THROW, fprintf_unfiltered(), and print_recreate_thread().
Referenced by initialize_throw_catchpoint_ops().
|
static |
Definition at line 207 of file break-catch-throw.c.
References CATCH, classify_exception_breakpoint(), do_cleanups(), END_CATCH, make_cleanup(), NOT_FOUND_ERROR, parse_probes(), RETURN_MASK_ERROR, symtabs_and_lines::sals, throw_exception(), TRY, update_breakpoint_locations(), and xfree().
Referenced by handle_gnu_v3_exceptions(), and initialize_throw_catchpoint_ops().
initialize_file_ftype _initialize_break_catch_throw |
Definition at line 573 of file break-catch-throw.c.
Referenced by initialize_all_files().
|
static |
Definition at line 544 of file break-catch-throw.c.
|
static |
Definition at line 65 of file break-catch-throw.c.
|
static |
Definition at line 72 of file break-catch-throw.c.
Referenced by handle_gnu_v3_exceptions(), and initialize_throw_catchpoint_ops().