GDB (xrefs)
|
#include "defs.h"
#include "probe.h"
#include "command.h"
#include "cli/cli-cmds.h"
#include "cli/cli-utils.h"
#include "objfiles.h"
#include "symtab.h"
#include "progspace.h"
#include "filenames.h"
#include "linespec.h"
#include "gdb_regex.h"
#include "frame.h"
#include "arch-utils.h"
#include "value.h"
#include "ax.h"
#include "ax-gdb.h"
#include <ctype.h>
Go to the source code of this file.
Typedefs | |
typedef struct bound_probe | bound_probe_s |
Variables | |
const struct probe_ops | probe_ops_any |
static const struct internalvar_funcs | probe_funcs |
typedef struct bound_probe bound_probe_s |
Definition at line 809 of file probe.c.
References probe_ops::can_evaluate_probe_arguments, and probe::pops.
Referenced by create_exception_master_breakpoint(), create_longjmp_master_breakpoint(), stap_get_probe_argument_count(), and svr4_create_solib_event_breakpoints().
Definition at line 318 of file probe.c.
References probe::address, probe::name, bound_probe::objfile, objfile_name(), bound_probe::probe, and probe::provider.
Referenced by info_probes_for_ops().
|
static |
Definition at line 968 of file probe.c.
References _, ax_const_l(), axs_rvalue, builtin_type::builtin_int, builtin_type(), probe_ops::compile_to_ax, core_addr_to_string(), error(), find_probe_by_pc(), gdb_assert, agent_expr::gdbarch, get_probe_argument_count(), get_selected_frame(), int, axs_value::kind, probe::pops, bound_probe::probe, agent_expr::scope, and axs_value::type.
|
static |
Definition at line 936 of file probe.c.
References _, core_addr_to_string(), error(), evaluate_probe_argument(), find_probe_by_pc(), gdb_assert, get_frame_pc(), get_probe_argument_count(), get_selected_frame(), int, bound_probe::probe, and value_from_longest().
DEF_VEC_O | ( | bound_probe_s | ) |
|
static |
Definition at line 747 of file probe.c.
References _, current_uiout, probe_ops::disable_probe, do_cleanups(), make_cleanup(), probe::name, null_cleanup(), parse_probe_linespec(), probe::pops, bound_probe::probe, probe::provider, provider, ui_out_message(), VEC(), VEC_empty, VEC_iterate, and xfree().
|
static |
Definition at line 701 of file probe.c.
References _, current_uiout, do_cleanups(), probe_ops::enable_probe, make_cleanup(), probe::name, null_cleanup(), parse_probe_linespec(), probe::pops, bound_probe::probe, probe::provider, provider, ui_out_message(), VEC(), VEC_empty, VEC_iterate, and xfree().
struct value* evaluate_probe_argument | ( | struct probe * | probe, |
unsigned | n, | ||
struct frame_info * | frame | ||
) |
Definition at line 817 of file probe.c.
References probe_ops::evaluate_probe_argument, and probe::pops.
Referenced by compute_probe_arg(), fetch_probe_arguments(), probe_safe_evaluate_at_pc(), and svr4_handle_solib_event().
|
static |
Definition at line 517 of file probe.c.
References probe::pops, bound_probe::probe, and VEC_iterate.
Referenced by info_probes_for_ops().
struct bound_probe find_probe_by_pc | ( | CORE_ADDR | pc | ) |
Definition at line 215 of file probe.c.
References ALL_OBJFILES, get_probe_address(), bound_probe::objfile, bound_probe::probe, objfile::sect_index_text, objfile::sf, sym_fns::sym_probe_fns, VEC(), and VEC_iterate.
Referenced by check_exception_resume(), compile_probe_arg(), compute_probe_arg(), fetch_probe_arguments(), and probe_safe_evaluate_at_pc().
|
static |
Definition at line 344 of file probe.c.
References current_uiout, do_cleanups(), info_probe_column::field_name, gdb_assert, probe_ops::gen_info_probes_table_header, probe_ops::gen_info_probes_table_values, make_cleanup(), max, probe::pops, info_probe_column::print_name, bound_probe::probe, ui_left, ui_out_table_header(), VEC(), VEC_cleanup, VEC_iterate, and VEC_length.
Referenced by info_probes_for_ops().
Definition at line 494 of file probe.c.
References do_cleanups(), probe_ops::gen_info_probes_table_header, make_cleanup(), VEC(), VEC_cleanup, and VEC_length.
Referenced by info_probes_for_ops().
Definition at line 793 of file probe.c.
References probe_ops::get_probe_address, and probe::pops.
Referenced by create_exception_master_breakpoint(), create_longjmp_master_breakpoint(), find_probe_by_pc(), info_probes_for_ops(), parse_probes(), and svr4_create_probe_breakpoints().
unsigned get_probe_argument_count | ( | struct probe * | probe, |
struct frame_info * | frame | ||
) |
Definition at line 801 of file probe.c.
References probe_ops::get_probe_argument_count, and probe::pops.
Referenced by compile_probe_arg(), compute_probe_arg(), fetch_probe_arguments(), probe_safe_evaluate_at_pc(), and solib_event_probe_action().
struct cmd_list_element** info_probes_cmdlist_get | ( | void | ) |
Definition at line 909 of file probe.c.
References _, add_prefix_cmd(), class_info, info_probes_command(), and infolist.
Referenced by _initialize_dtrace_probe(), and _initialize_stap_probe().
|
static |
Definition at line 693 of file probe.c.
References info_probes_for_ops().
Referenced by info_probes_cmdlist_get().
Definition at line 551 of file probe.c.
References _, probe::arch, compare_probes(), current_uiout, do_cleanups(), exists_probe_with_pops(), gdbarch_addr_bit(), gen_ui_out_table_header_info(), get_current_arch(), get_number_extra_fields(), get_probe_address(), make_cleanup(), make_cleanup_ui_out_table_begin_end(), make_cleanup_ui_out_tuple_begin_end(), max, probe::name, null_cleanup(), bound_probe::objfile, objfile_name(), parse_probe_linespec(), probe::pops, print_ui_out_info(), print_ui_out_not_applicables(), bound_probe::probe, probe::provider, provider, qsort, probe_ops::type_name, ui_left, ui_out_field_core_addr(), ui_out_field_string(), ui_out_message(), ui_out_table_body(), ui_out_table_header(), ui_out_text(), VEC(), VEC_address, VEC_cleanup, VEC_empty, VEC_iterate, VEC_length, and xfree().
Referenced by info_probes_command(), info_probes_dtrace_command(), and info_probes_stap_command().
|
static |
Definition at line 534 of file probe.c.
References extract_arg_const().
Referenced by disable_probes_command(), enable_probes_command(), and info_probes_for_ops().
struct symtabs_and_lines parse_probes | ( | char ** | argptr, |
struct linespec_result * | canonical | ||
) |
Definition at line 46 of file probe.c.
References _, ALL_PSPACE_OBJFILES, ALL_PSPACES, do_cleanups(), error(), symtab_and_line::explicit_pc, find_pc_overlay(), get_probe_address(), init_sal(), make_cleanup(), name, probe::name, symtabs_and_lines::nelts, NOT_FOUND_ERROR, symtab_and_line::objfile, objfile_name(), symtab_and_line::pc, probe::pops, symtab_and_line::probe, probe_linespec_to_ops(), probe_ops_any, probe::provider, provider, symtab_and_line::pspace, symtabs_and_lines::sals, savestring(), symtab_and_line::section, objfile::sf, skip_spaces(), skip_to_space, sym_fns::sym_probe_fns, throw_error(), VEC(), VEC_iterate, xfree(), and xrealloc().
Referenced by bkpt_probe_create_sals_from_address(), bkpt_probe_decode_linespec(), and re_set_exception_catchpoint().
|
static |
Definition at line 445 of file probe.c.
References current_uiout, do_cleanups(), info_probe_column::field_name, gdb_assert, probe_ops::gen_info_probes_table_header, probe_ops::gen_info_probes_table_values, make_cleanup(), probe::pops, ui_out_field_skip(), ui_out_field_string(), VEC(), VEC_cleanup, VEC_index, VEC_iterate, and VEC_length.
Referenced by info_probes_for_ops().
Definition at line 420 of file probe.c.
References _, current_uiout, do_cleanups(), info_probe_column::field_name, probe_ops::gen_info_probes_table_header, make_cleanup(), ui_out_field_string(), VEC(), VEC_cleanup, and VEC_iterate.
Referenced by info_probes_for_ops().
Definition at line 883 of file probe.c.
References probe_is_linespec_by_keyword().
Definition at line 860 of file probe.c.
References len.
Referenced by dtrace_probe_is_linespec(), probe_any_is_linespec(), and stap_probe_is_linespec().
Definition at line 845 of file probe.c.
References probe_ops::is_linespec, and VEC_iterate.
Referenced by break_command_1(), parse_probes(), and trace_command().
struct value* probe_safe_evaluate_at_pc | ( | struct frame_info * | frame, |
unsigned | n | ||
) |
Definition at line 826 of file probe.c.
References evaluate_probe_argument(), find_probe_by_pc(), get_frame_pc(), get_probe_argument_count(), and bound_probe::probe.
Referenced by insert_exception_resume_from_probe(), and process_event_stop_test().
VEC | ( | probe_p | ) |
Definition at line 186 of file probe.c.
References probe::name, probe::provider, objfile::sf, sym_fns::sym_probe_fns, VEC_iterate, and VEC_safe_push.
Referenced by disable_probes_command(), enable_probes_command(), find_probe_by_pc(), gen_ui_out_table_header_info(), get_number_extra_fields(), info_probes_for_ops(), parse_probes(), print_ui_out_info(), print_ui_out_not_applicables(), and VEC().
|
static |
Definition at line 253 of file probe.c.
References _, ALL_OBJFILES, compile_rx_or_error(), discard_cleanups(), do_cleanups(), make_cleanup(), probe::name, null_cleanup(), bound_probe::objfile, objfile_name(), probe::pops, bound_probe::probe, probe::provider, objfile::sf, sym_fns::sym_probe_fns, VEC(), VEC_cleanup, VEC_iterate, and VEC_safe_push.
VEC | ( | probe_ops_cp | ) |
|
static |
Definition at line 900 of file probe.c.
Referenced by parse_probes().