GDB (xrefs)

Public Member Functions | Private Attributes | List of all members
probe Class Referenceabstract

`#include "probe.h"`

Inheritance diagram for probe:

## Public Member Functions
| probe (std::string &&name_, std::string &&provider_, CORE_ADDR address_, struct gdbarch *arch_)
virtual | ~probe ()
virtual CORE_ADDR | get_relocated_address (struct objfile *objfile)=0
virtual unsigned | get_argument_count (struct frame_info *frame)=0
virtual bool | can_evaluate_arguments () const =0
virtual struct value * | evaluate_argument (unsigned n, struct frame_info *frame)=0
virtual void | compile_to_ax (struct agent_expr *aexpr, struct axs_value *axs_value, unsigned n)=0
virtual void | set_semaphore (struct objfile *objfile, struct gdbarch *gdbarch)
virtual void | clear_semaphore (struct objfile *objfile, struct gdbarch *gdbarch)
virtual const static_probe_ops * | get_static_ops () const =0
virtual std::vector< const char * > | gen_info_probes_table_values () const
virtual void | enable ()
virtual void | disable ()
const std::string & | get_name () const
const std::string & | get_provider () const
CORE_ADDR | get_address () const
struct gdbarch * | get_gdbarch () const

## Private Attributes
std::string | m_name
std::string | m_provider
CORE_ADDR | m_address
struct gdbarch * | m_arch

## Detailed Description

Definition at line 112 of file probe.h.

## Constructor & Destructor Documentation

## ◆ probe()

probe::probe | ( | std::string && | name_,
|  | std::string && | provider_,
|  | CORE_ADDR | address_,
|  | struct gdbarch * | arch_
| ) |  |
| inline

Definition at line 116 of file probe.h.

## ◆ ~probe()

virtual probe::~probe | ( |  | ) |
| inline virtual

Definition at line 123 of file probe.h.

## Member Function Documentation

## ◆ can_evaluate_arguments()

virtual bool probe::can_evaluate_arguments | ( |  | ) | const
| pure virtual

Implemented in stap_probe, and dtrace_probe.

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

## ◆ clear_semaphore()

virtual void probe::clear_semaphore | ( | struct objfile * | objfile,
|  | struct gdbarch * | gdbarch
| ) |  |
| inline virtual

Reimplemented in stap_probe.

Definition at line 162 of file probe.h.

Referenced by bkpt_probe_remove_location().

## ◆ compile_to_ax()

virtual void probe::compile_to_ax | ( | struct agent_expr * | aexpr,
|  | struct axs_value * | axs_value,
|  | unsigned | n
| ) |  |
| pure virtual

Implemented in stap_probe, and dtrace_probe.

Referenced by compile_probe_arg().

## ◆ disable()

virtual void probe::disable | ( |  | ) |
| inline virtual

Reimplemented in dtrace_probe.

Definition at line 193 of file probe.h.

Referenced by disable_probes_command().

## ◆ enable()

virtual void probe::enable | ( |  | ) |
| inline virtual

Reimplemented in dtrace_probe.

Definition at line 187 of file probe.h.

Referenced by enable_probes_command().

## ◆ evaluate_argument()

virtual struct value* probe::evaluate_argument | ( | unsigned | n,
|  | struct frame_info * | frame
| ) |  |
| pure virtual

Implemented in stap_probe, and dtrace_probe.

Referenced by compute_probe_arg(), fetch_probe_arguments(), probe_safe_evaluate_at_pc(), and svr4_handle_solib_event().

## ◆ gen_info_probes_table_values()

virtual std::vector<const char *> probe::gen_info_probes_table_values | ( |  | ) | const
| inline virtual

Reimplemented in stap_probe, and dtrace_probe.

Definition at line 180 of file probe.h.

Referenced by gen_ui_out_table_header_info(), and print_ui_out_info().

## ◆ get_address()

CORE_ADDR probe::get_address | ( |  | ) | const
| inline

Definition at line 209 of file probe.h.

References m_address.

Referenced by compare_probes(), dtrace_probe::get_relocated_address(), and stap_probe::get_relocated_address().

## ◆ get_argument_count()

virtual unsigned probe::get_argument_count | ( | struct frame_info * | frame | ) |
| pure virtual

Implemented in stap_probe, and dtrace_probe.

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

## ◆ get_gdbarch()

struct gdbarch* probe::get_gdbarch | ( |  | ) | const
| inline

Definition at line 215 of file probe.h.

References m_arch.

Referenced by dtrace_probe::can_evaluate_arguments(), stap_probe::can_evaluate_arguments(), dtrace_probe::disable(), dtrace_probe::enable(), dtrace_probe::evaluate_argument(), dtrace_probe::gen_info_probes_table_values(), stap_probe::gen_info_probes_table_values(), info_probes_for_spops(), and dtrace_probe::is_enabled().

## ◆ get_name()

const std::string& probe::get_name | ( |  | ) | const
| inline

Definition at line 197 of file probe.h.

References m_name.

Referenced by compare_probes(), dtrace_probe::disable(), disable_probes_command(), enable_probes_command(), fetch_probe_arguments(), dtrace_probe::get_arg_by_number(), stap_probe::get_arg_by_number(), info_probes_for_spops(), and stap_probe::parse_arguments().

## ◆ get_provider()

const std::string& probe::get_provider | ( |  | ) | const
| inline

Definition at line 203 of file probe.h.

References m_provider.

Referenced by compare_probes(), dtrace_probe::disable(), disable_probes_command(), enable_probes_command(), fetch_probe_arguments(), and info_probes_for_spops().

## ◆ get_relocated_address()

virtual CORE_ADDR probe::get_relocated_address | ( | struct objfile * | objfile | ) |
| pure virtual

Implemented in stap_probe, and dtrace_probe.

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

## ◆ get_static_ops()

virtual const static_probe_ops* probe::get_static_ops | ( |  | ) | const
| pure virtual

Implemented in stap_probe, and dtrace_probe.

Referenced by disable_probes_command(), enable_probes_command(), exists_probe_with_spops(), gen_ui_out_table_header_info(), info_probes_for_spops(), and print_ui_out_info().

## ◆ set_semaphore()

virtual void probe::set_semaphore | ( | struct objfile * | objfile,
|  | struct gdbarch * | gdbarch
| ) |  |
| inline virtual

Reimplemented in stap_probe.

Definition at line 155 of file probe.h.

Referenced by bkpt_probe_insert_location().

## Member Data Documentation

## ◆ m_address

CORE_ADDR probe::m_address
| private

Definition at line 230 of file probe.h.

Referenced by get_address().

## ◆ m_arch

struct gdbarch* probe::m_arch
| private

Definition at line 233 of file probe.h.

Referenced by get_gdbarch().

## ◆ m_name

std::string probe::m_name
| private

Definition at line 222 of file probe.h.

Referenced by get_name().

## ◆ m_provider

std::string probe::m_provider
| private

Definition at line 226 of file probe.h.

Referenced by get_provider().

The documentation for this class was generated from the following file:

- /tmp/gdb-8.1/gdb/probe.h