GDB (xrefs)

Classes | Functions | Variables
/tmp/gdb-8.1/gdb/probe.h File Reference

Go to the source code of this file.

## Classes
struct | info_probe_column
class | static_probe_ops
class | probe
struct | bound_probe

## Functions
int | probe_is_linespec_by_keyword (const char **linespecp, const char *const *keywords)
const static_probe_ops * | probe_linespec_to_static_ops (const char **linespecp)
std::vector< symtab_and_line > | parse_probes (const struct event_location *loc, struct program_space *pspace, struct linespec_result *canon)
struct bound_probe | find_probe_by_pc (CORE_ADDR pc)
std::vector< probe * > | find_probes_in_objfile (struct objfile *objfile, const char *provider, const char *name)
void | info_probes_for_spops (const char *arg, int from_tty, const static_probe_ops *spops)
struct cmd_list_element ** | info_probes_cmdlist_get (void)
struct value * | probe_safe_evaluate_at_pc (struct frame_info *frame, unsigned n)

## Variables
std::vector< const static_probe_ops * > | all_static_probe_ops

## Function Documentation

## ◆ find_probe_by_pc()

struct bound_probe find_probe_by_pc | ( | CORE_ADDR | pc | ) |

Definition at line 247 of file probe.c.

References ALL_OBJFILES, bound_probe::objfile, bound_probe::prob, objfile::sect_index_text, objfile::sf, sym_probe_fns::sym_get_probes, and sym_fns::sym_probe_fns.

Referenced by check_exception_resume(), compile_probe_arg(), compute_probe_arg(), fetch_probe_arguments(), and probe_safe_evaluate_at_pc().

## ◆ find_probes_in_objfile()

std::vector<probe *> find_probes_in_objfile | ( | struct objfile * | objfile,
|  | const char * | provider,
|  | const char * | name
| ) |  |

Definition at line 220 of file probe.c.

References name, objfile::sf, sym_probe_fns::sym_get_probes, and sym_fns::sym_probe_fns.

Referenced by create_exception_master_breakpoint(), create_longjmp_master_breakpoint(), and svr4_create_solib_event_breakpoints().

## ◆ info_probes_cmdlist_get()

struct cmd_list_element** info_probes_cmdlist_get | ( | void |  | ) |

Definition at line 782 of file probe.c.

References _, add_prefix_cmd(), class_info, info_probes_command(), and infolist.

Referenced by _initialize_dtrace_probe(), _initialize_probe(), and _initialize_stap_probe().

## ◆ info_probes_for_spops()

void info_probes_for_spops | ( | const char * | arg,
|  | int | from_tty,
|  | const static_probe_ops * | spops
| ) |  |

Definition at line 489 of file probe.c.

References _, all_static_probe_ops, collect_probes(), compare_probes(), current_uiout, exists_probe_with_spops(), gdbarch_addr_bit(), gen_ui_out_table_header_info(), get_current_arch(), probe::get_gdbarch(), probe::get_name(), get_number_extra_fields(), probe::get_provider(), probe::get_relocated_address(), probe::get_static_ops(), objfile_name(), parse_probe_linespec(), print_ui_out_info(), print_ui_out_not_applicables(), string, static_probe_ops::type_name(), and ui_left.

Referenced by info_probes_command(), info_probes_dtrace_command(), and info_probes_stap_command().

## ◆ parse_probes()

std::vector<symtab_and_line> parse_probes | ( | const struct event_location * | loc,
|  | struct program_space * | pspace,
|  | struct linespec_result * | canon
| ) |  |

Definition at line 119 of file probe.c.

References _, ALL_PSPACES, error(), gdb_assert, get_probe_location(), linespec_result::location, name, new_probe_location(), NOT_FOUND_ERROR, parse_probes_in_pspace(), linespec_result::pre_expanded, probe_linespec_to_static_ops(), PROBE_LOCATION, skip_spaces(), skip_to_space(), linespec_result::special_display, string, and throw_error().

Referenced by bkpt_probe_create_sals_from_location(), bkpt_probe_decode_location(), and re_set_exception_catchpoint().

## ◆ probe_is_linespec_by_keyword()

int probe_is_linespec_by_keyword | ( | const char ** | linespecp,
|  | const char *const * | keywords
| ) |  |

Definition at line 724 of file probe.c.

Referenced by any_static_probe_ops::is_linespec(), dtrace_static_probe_ops::is_linespec(), and stap_static_probe_ops::is_linespec().

## ◆ probe_linespec_to_static_ops()

const static_probe_ops* probe_linespec_to_static_ops | ( | const char ** | linespecp | ) |

Definition at line 712 of file probe.c.

References all_static_probe_ops.

Referenced by parse_probes(), and string_to_event_location_basic().

## ◆ probe_safe_evaluate_at_pc()

struct value* probe_safe_evaluate_at_pc | ( | struct frame_info * | frame,
|  | unsigned | n
| ) |  |

Definition at line 693 of file probe.c.

References probe::evaluate_argument(), find_probe_by_pc(), probe::get_argument_count(), and get_frame_pc().

Referenced by insert_exception_resume_from_probe(), and process_event_stop_test().

## Variable Documentation

## ◆ all_static_probe_ops

std::vector<const static_probe_ops *> all_static_probe_ops

Definition at line 882 of file probe.c.

Referenced by _initialize_dtrace_probe(), _initialize_probe(), _initialize_stap_probe(), elf_get_probes(), info_probes_for_spops(), and probe_linespec_to_static_ops().