GDB (xrefs)
|
#include "tracepoint.h"
Public Member Functions | |
collection_list () | |
void | add_wholly_collected (const char *print_name) |
void | append_exp (std::string &&exp) |
void | add_aexpr (agent_expr_up aexpr) |
void | add_remote_register (unsigned int regno) |
void | add_ax_registers (struct agent_expr *aexpr) |
void | add_local_register (struct gdbarch *gdbarch, unsigned int regno, CORE_ADDR scope) |
void | add_memrange (struct gdbarch *gdbarch, int type, bfd_signed_vma base, unsigned long len, CORE_ADDR scope) |
void | collect_symbol (struct symbol *sym, struct gdbarch *gdbarch, long frame_regno, long frame_offset, CORE_ADDR scope, int trace_string) |
void | add_local_symbols (struct gdbarch *gdbarch, CORE_ADDR pc, long frame_regno, long frame_offset, int type, int trace_string) |
void | add_static_trace_data () |
void | finish () |
std::vector< std::string > | stringify () |
const std::vector< std::string > & | wholly_collected () |
const std::vector< std::string > & | computed () |
Private Attributes | |
std::vector< unsigned char > | m_regs_mask |
std::vector< memrange > | m_memranges |
std::vector< agent_expr_up > | m_aexprs |
bool | m_strace_data |
std::vector< std::string > | m_wholly_collected |
std::vector< std::string > | m_computed |
Definition at line 253 of file tracepoint.h.
collection_list::collection_list | ( | ) |
Definition at line 1096 of file tracepoint.c.
References gdbarch_num_regs(), gdbarch_remote_register_number(), m_aexprs, m_memranges, m_regs_mask, and target_gdbarch().
void collection_list::add_aexpr | ( | agent_expr_up | aexpr | ) |
Definition at line 1508 of file tracepoint.c.
References m_aexprs.
Referenced by add_local_register(), collect_symbol(), and encode_actions_1().
void collection_list::add_ax_registers | ( | struct agent_expr * | aexpr | ) |
Definition at line 835 of file tracepoint.c.
References add_remote_register(), QUIT, and agent_expr::reg_mask.
Referenced by add_local_register(), collect_symbol(), and encode_actions_1().
void collection_list::add_local_register | ( | struct gdbarch * | gdbarch, |
unsigned int | regno, | ||
CORE_ADDR | scope ) |
Definition at line 854 of file tracepoint.c.
References add_aexpr(), add_ax_registers(), add_remote_register(), ax_reg_mask(), finalize_tracepoint_aexpr(), gdbarch_num_regs(), and gdbarch_remote_register_number().
Referenced by add_memrange(), collect_symbol(), and encode_actions_1().
void collection_list::add_local_symbols | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | pc, | ||
long | frame_regno, | ||
long | frame_offset, | ||
int | type, | ||
int | trace_string ) |
Definition at line 1042 of file tracepoint.c.
References add_wholly_collected(), block_for_pc(), collect_symbol(), get_pc_function_start(), iterate_over_block_arg_vars(), and iterate_over_block_local_vars().
Referenced by encode_actions_1().
void collection_list::add_memrange | ( | struct gdbarch * | gdbarch, |
int | type, | ||
bfd_signed_vma | base, | ||
unsigned long | len, | ||
CORE_ADDR | scope ) |
Definition at line 889 of file tracepoint.c.
References add_local_register(), gdb_printf(), info_verbose, m_memranges, memrange_absolute, and paddress().
Referenced by collect_symbol(), and encode_actions_1().
void collection_list::add_remote_register | ( | unsigned int | regno | ) |
Definition at line 822 of file tracepoint.c.
References gdb_printf(), info_verbose, and m_regs_mask.
Referenced by add_ax_registers(), add_local_register(), and encode_actions_1().
void collection_list::add_static_trace_data | ( | ) |
Definition at line 1089 of file tracepoint.c.
References gdb_printf(), info_verbose, and m_strace_data.
Referenced by encode_actions_1().
void collection_list::add_wholly_collected | ( | const char * | print_name | ) |
Definition at line 1034 of file tracepoint.c.
References m_wholly_collected.
Referenced by add_local_symbols(), and encode_actions_1().
void collection_list::append_exp | ( | std::string && | exp | ) |
Definition at line 1239 of file tracepoint.c.
References m_computed.
Referenced by encode_actions_1().
void collection_list::collect_symbol | ( | struct symbol * | sym, |
struct gdbarch * | gdbarch, | ||
long | frame_regno, | ||
long | frame_offset, | ||
CORE_ADDR | scope, | ||
int | trace_string ) |
Definition at line 908 of file tracepoint.c.
References symbol::aclass(), add_aexpr(), add_ax_registers(), add_local_register(), add_memrange(), check_typedef(), type::code(), finalize_tracepoint_aexpr(), gdb_printf(), gen_trace_for_var(), info_verbose, type::length(), LOC_ARG, LOC_COMPUTED, LOC_CONST, LOC_LOCAL, LOC_OPTIMIZED_OUT, LOC_REF_ARG, LOC_REGISTER, LOC_REGPARM_ADDR, LOC_STATIC, LOC_UNRESOLVED, memrange_absolute, paddress(), general_symbol_info::print_name(), register_size(), SYMBOL_REGISTER_OPS, symbol::type(), symbol::value_address(), and symbol::value_longest().
Referenced by add_local_symbols(), and encode_actions_1().
|
inline |
Definition at line 291 of file tracepoint.h.
References m_computed.
Referenced by mi_cmd_trace_frame_collected().
void collection_list::finish | ( | ) |
Definition at line 1245 of file tracepoint.c.
References m_memranges, and memrange_sortmerge().
Referenced by encode_actions().
std::vector< std::string > collection_list::stringify | ( | ) |
Definition at line 1118 of file tracepoint.c.
References gdb_printf(), info_verbose, m_aexprs, m_memranges, m_regs_mask, m_strace_data, MAX_AGENT_EXPR_LEN, memrange_absolute, paddress(), QUIT, and target_gdbarch().
Referenced by encode_actions_rsp().
|
inline |
Definition at line 288 of file tracepoint.h.
References m_wholly_collected.
Referenced by mi_cmd_trace_frame_collected().
|
private |
Definition at line 301 of file tracepoint.h.
Referenced by add_aexpr(), collection_list(), and stringify().
|
private |
Definition at line 310 of file tracepoint.h.
Referenced by append_exp(), and computed().
|
private |
Definition at line 299 of file tracepoint.h.
Referenced by add_memrange(), collection_list(), finish(), and stringify().
|
private |
Definition at line 297 of file tracepoint.h.
Referenced by add_remote_register(), collection_list(), and stringify().
|
private |
Definition at line 305 of file tracepoint.h.
Referenced by add_static_trace_data(), and stringify().
|
private |
Definition at line 308 of file tracepoint.h.
Referenced by add_wholly_collected(), and wholly_collected().