GDB (xrefs)
|
#include "defs.h"
#include "arch-utils.h"
#include "symtab.h"
#include "frame.h"
#include "gdbtypes.h"
#include "expression.h"
#include "gdbcmd.h"
#include "value.h"
#include "target.h"
#include "target-dcache.h"
#include "language.h"
#include "inferior.h"
#include "breakpoint.h"
#include "tracepoint.h"
#include "linespec.h"
#include "regcache.h"
#include "completer.h"
#include "block.h"
#include "dictionary.h"
#include "observable.h"
#include "user-regs.h"
#include "valprint.h"
#include "gdbcore.h"
#include "objfiles.h"
#include "filenames.h"
#include "gdbthread.h"
#include "stack.h"
#include "remote.h"
#include "source.h"
#include "ax.h"
#include "ax-gdb.h"
#include "memrange.h"
#include "cli/cli-utils.h"
#include "probe.h"
#include "gdbsupport/filestuff.h"
#include "gdbsupport/rsp-low.h"
#include "tracefile.h"
#include "location.h"
#include <algorithm>
#include "cli/cli-style.h"
#include "expop.h"
#include "gdbsupport/buildargv.h"
#include "interps.h"
#include <unistd.h>
Go to the source code of this file.
Macros | |
#define | MAX_AGENT_EXPR_LEN 184 |
Enumerations | |
enum | { memrange_absolute = -1 } |
Functions | |
static counted_command_line | all_tracepoint_actions (tracepoint *) |
struct trace_status * | current_trace_status (void) |
static void | clear_traceframe_info (void) |
static void | set_traceframe_num (int num) |
static void | set_tracepoint_num (int num) |
static void | set_traceframe_context (frame_info_ptr trace_frame) |
struct trace_state_variable * | create_trace_state_variable (const char *name) |
struct trace_state_variable * | find_trace_state_variable (const char *name) |
struct trace_state_variable * | find_trace_state_variable_by_number (int number) |
static void | delete_trace_state_variable (const char *name) |
void | validate_trace_state_variable_name (const char *name) |
static void | trace_variable_command (const char *args, int from_tty) |
static void | delete_trace_variable_command (const char *args, int from_tty) |
void | tvariables_info_1 (void) |
static void | info_tvariables_command (const char *args, int from_tty) |
void | save_trace_state_variables (struct ui_file *fp) |
static void | end_actions_pseudocommand (const char *args, int from_tty) |
static void | while_stepping_pseudocommand (const char *args, int from_tty) |
static void | collect_pseudocommand (const char *args, int from_tty) |
static void | teval_pseudocommand (const char *args, int from_tty) |
const char * | decode_agent_options (const char *exp, int *trace_string) |
static void | actions_command (const char *args, int from_tty) |
static void | report_agent_reqs_errors (struct agent_expr *aexpr) |
static void | finalize_tracepoint_aexpr (struct agent_expr *aexpr) |
void | validate_actionline (const char *line, tracepoint *t) |
static bool | memrange_comp (const memrange &a, const memrange &b) |
static void | memrange_sortmerge (std::vector< memrange > &memranges) |
static void | encode_actions_1 (struct command_line *action, struct bp_location *tloc, int frame_reg, LONGEST frame_offset, struct collection_list *collect, struct collection_list *stepping_list) |
void | encode_actions (struct bp_location *tloc, struct collection_list *tracepoint_list, struct collection_list *stepping_list) |
void | encode_actions_rsp (struct bp_location *tloc, std::vector< std::string > *tdp_actions, std::vector< std::string > *stepping_actions) |
static void | process_tracepoint_on_disconnect (void) |
void | trace_reset_local_state (void) |
void | start_tracing (const char *notes) |
static void | tstart_command (const char *args, int from_tty) |
static void | tstop_command (const char *args, int from_tty) |
void | stop_tracing (const char *note) |
static void | tstatus_command (const char *args, int from_tty) |
void | trace_status_mi (int on_stop) |
void | query_if_trace_running (int from_tty) |
void | disconnect_tracing (void) |
void | tfind_1 (enum trace_find_type type, int num, CORE_ADDR addr1, CORE_ADDR addr2, int from_tty) |
void | check_trace_running (struct trace_status *status) |
static void | tfind_command_1 (const char *args, int from_tty) |
static void | tfind_command (const char *args, int from_tty) |
static void | tfind_end_command (const char *args, int from_tty) |
static void | tfind_start_command (const char *args, int from_tty) |
static void | tfind_pc_command (const char *args, int from_tty) |
static void | tfind_tracepoint_command (const char *args, int from_tty) |
static void | tfind_line_command (const char *args, int from_tty) |
static void | tfind_range_command (const char *args, int from_tty) |
static void | tfind_outside_command (const char *args, int from_tty) |
static void | info_scope_command (const char *args_in, int from_tty) |
static void | trace_dump_actions (struct command_line *action, int stepping_actions, int stepping_frame, int from_tty) |
struct bp_location * | get_traceframe_location (int *stepping_frame_p) |
static void | tdump_command (const char *args, int from_tty) |
int | encode_source_string (int tpnum, ULONGEST addr, const char *srctype, const char *src, char *buf, int buf_size) |
static void | set_disconnected_tracing (const char *args, int from_tty, struct cmd_list_element *c) |
static void | set_circular_trace_buffer (const char *args, int from_tty, struct cmd_list_element *c) |
static void | set_trace_buffer_size (const char *args, int from_tty, struct cmd_list_element *c) |
static void | set_trace_user (const char *args, int from_tty, struct cmd_list_element *c) |
static void | set_trace_notes (const char *args, int from_tty, struct cmd_list_element *c) |
static void | set_trace_stop_notes (const char *args, int from_tty, struct cmd_list_element *c) |
int | get_traceframe_number (void) |
int | get_tracepoint_number (void) |
void | set_current_traceframe (int num) |
struct uploaded_tp * | get_uploaded_tp (int num, ULONGEST addr, struct uploaded_tp **utpp) |
void | free_uploaded_tps (struct uploaded_tp **utpp) |
struct uploaded_tsv * | get_uploaded_tsv (int num, struct uploaded_tsv **utsvp) |
void | free_uploaded_tsvs (struct uploaded_tsv **utsvp) |
static int | cond_string_is_same (char *str1, char *str2) |
static struct bp_location * | find_matching_tracepoint_location (struct uploaded_tp *utp) |
void | merge_uploaded_tracepoints (struct uploaded_tp **uploaded_tps) |
static struct trace_state_variable * | find_matching_tsv (struct uploaded_tsv *utsv) |
static struct trace_state_variable * | create_tsv_from_upload (struct uploaded_tsv *utsv) |
void | merge_uploaded_trace_state_variables (struct uploaded_tsv **uploaded_tsvs) |
void | parse_trace_status (const char *line, struct trace_status *ts) |
void | parse_tracepoint_status (const char *p, tracepoint *tp, struct uploaded_tp *utp) |
void | parse_tracepoint_definition (const char *line, struct uploaded_tp **utpp) |
void | parse_tsv_definition (const char *line, struct uploaded_tsv **utsvp) |
void | parse_static_tracepoint_marker_definition (const char *line, const char **pp, static_tracepoint_marker *marker) |
static void | print_one_static_tracepoint_marker (int count, const static_tracepoint_marker &marker) |
static void | info_static_tracepoint_markers_command (const char *arg, int from_tty) |
static struct value * | sdata_make_value (struct gdbarch *gdbarch, struct internalvar *var, void *ignore) |
struct std::unique_ptr< traceframe_info > | parse_traceframe_info (const char *tframe_info) |
struct traceframe_info * | get_traceframe_info (void) |
int | traceframe_available_memory (std::vector< mem_range > *result, CORE_ADDR memaddr, ULONGEST len) |
void | _initialize_tracepoint () |
Variables | |
static std::vector< trace_state_variable > | tvariables |
static int | next_tsv_number = 1 |
static int | traceframe_number |
static int | tracepoint_number |
static traceframe_info_up | current_traceframe_info |
static struct cmd_list_element * | tfindlist |
std::string | default_collect |
static bool | disconnected_tracing |
static bool | circular_trace_buffer |
static int | trace_buffer_size = -1 |
static std::string | trace_user |
static std::string | trace_notes |
static std::string | trace_stop_notes |
static struct trace_status | trace_status |
const char * | stop_reason_names [] |
static const struct internalvar_funcs | sdata_funcs |
cmd_list_element * | while_stepping_cmd_element = nullptr |
#define MAX_AGENT_EXPR_LEN 184 |
Definition at line 74 of file tracepoint.c.
Referenced by finalize_tracepoint_aexpr(), and collection_list::stringify().
anonymous enum |
Enumerator | |
---|---|
memrange_absolute |
Definition at line 767 of file tracepoint.c.
void _initialize_tracepoint | ( | ) |
Definition at line 3924 of file tracepoint.c.
Referenced by initialize_all_files().
|
static |
Definition at line 566 of file tracepoint.c.
References breakpoint_set_commands(), get_tracepoint_by_number(), breakpoint::number, and read_command_lines().
|
static |
Definition at line 2757 of file tracepoint.c.
References default_collect, simple_control, and validate_actionline().
Referenced by encode_actions(), and tdump_command().
void check_trace_running | ( | struct trace_status * | status | ) |
Definition at line 2202 of file tracepoint.c.
References status.
Referenced by mi_cmd_trace_find(), tfind_command_1(), tfind_line_command(), tfind_pc_command(), tfind_range_command(), and tfind_tracepoint_command().
|
static |
Definition at line 184 of file tracepoint.c.
References current_traceframe_info.
Referenced by set_current_traceframe(), and trace_reset_local_state().
|
static |
Definition at line 511 of file tracepoint.c.
Referenced by encode_actions_1(), trace_dump_actions(), and validate_actionline().
|
static |
Definition at line 3005 of file tracepoint.c.
Referenced by find_matching_tracepoint_location().
struct trace_state_variable * create_trace_state_variable | ( | const char * | name | ) |
Definition at line 254 of file tracepoint.c.
References name, next_tsv_number, and tvariables.
Referenced by create_tsv_from_upload(), mi_cmd_trace_define_variable(), and trace_variable_command().
|
static |
Definition at line 3128 of file tracepoint.c.
References trace_state_variable::builtin, uploaded_tsv::builtin, create_trace_state_variable(), find_trace_state_variable(), trace_state_variable::initial_value, uploaded_tsv::initial_value, interps_notify_tsv_created(), and uploaded_tsv::name.
Referenced by merge_uploaded_trace_state_variables().
struct trace_status * current_trace_status | ( | void | ) |
Definition at line 175 of file tracepoint.c.
References trace_status.
Referenced by remote_target::can_download_tracepoint(), disable_breakpoint(), enable_breakpoint_disp(), enable_disable_bp_location(), enable_disable_bp_num_loc(), mi_cmd_trace_find(), query_if_trace_running(), remote_target::start_remote_1(), start_tracing(), stop_tracing(), tfile_interp_line(), tfile_target_open(), tfind_command_1(), tfind_line_command(), tfind_outside_command(), tfind_pc_command(), tfind_range_command(), tfind_tracepoint_command(), trace_save(), trace_status_mi(), tstart_command(), tstatus_command(), tstop_command(), and tvariables_info_1().
const char * decode_agent_options | ( | const char * | exp, |
int * | trace_string ) |
Definition at line 525 of file tracepoint.c.
References get_print_max_chars(), get_user_print_options(), and target_supports_string_tracing().
Referenced by agent_eval_command_one(), encode_actions_1(), trace_dump_actions(), and validate_actionline().
|
static |
Definition at line 286 of file tracepoint.c.
References interps_notify_tsv_deleted(), name, and tvariables.
Referenced by delete_trace_variable_command().
|
static |
Definition at line 383 of file tracepoint.c.
References delete_trace_state_variable(), dont_repeat(), interps_notify_tsv_deleted(), query(), and tvariables.
void disconnect_tracing | ( | void | ) |
Definition at line 2056 of file tracepoint.c.
References trace_reset_local_state().
Referenced by detach_command(), disconnect_command(), and quit_force().
void encode_actions | ( | struct bp_location * | tloc, |
struct collection_list * | tracepoint_list, | ||
struct collection_list * | stepping_list ) |
Definition at line 1471 of file tracepoint.c.
References bp_location::address, all_tracepoint_actions(), breakpoint_commands(), encode_actions_1(), collection_list::finish(), bp_location::gdbarch, gdbarch_virtual_frame_pointer(), and bp_location::owner.
Referenced by encode_actions_rsp(), and mi_cmd_trace_frame_collected().
|
static |
Definition at line 1251 of file tracepoint.c.
References collection_list::add_aexpr(), collection_list::add_ax_registers(), collection_list::add_local_register(), collection_list::add_local_symbols(), collection_list::add_memrange(), collection_list::add_remote_register(), collection_list::add_static_trace_data(), collection_list::add_wholly_collected(), bp_location::address, value::address, collection_list::append_exp(), block_for_pc(), command_line::body_list_0, check_typedef(), cmd_simple_func_eq(), cmdlist, collect_pseudocommand(), collection_list::collect_symbol(), decode_agent_options(), encode_actions_1(), finalize_tracepoint_aexpr(), gdb_printf(), gdbarch_num_regs(), gdbarch_remote_register_number(), gen_eval_for_expr(), gen_trace_for_expr(), gen_trace_for_return_address(), expr::register_operation::get_name(), expr::var_value_operation::get_symbol(), expr::unop_memval_operation::get_type(), info_verbose, type::length(), command_line::line, lookup_cmd(), memrange_absolute, name, general_symbol_info::natural_name(), command_line::next, parse_exp_1(), PARSER_COMMA_TERMINATES, QUIT, target_gdbarch(), teval_pseudocommand(), user_reg_map_name_to_regnum(), and while_stepping_pseudocommand().
Referenced by encode_actions(), and encode_actions_1().
void encode_actions_rsp | ( | struct bp_location * | tloc, |
std::vector< std::string > * | tdp_actions, | ||
std::vector< std::string > * | stepping_actions ) |
Definition at line 1495 of file tracepoint.c.
References encode_actions(), and collection_list::stringify().
Referenced by remote_target::download_tracepoint().
int encode_source_string | ( | int | tpnum, |
ULONGEST | addr, | ||
const char * | srctype, | ||
const char * | src, | ||
char * | buf, | ||
int | buf_size ) |
Definition at line 2814 of file tracepoint.c.
Referenced by remote_target::download_tracepoint(), remote_target::remote_download_command_source(), and tfile_write_uploaded_tp().
|
static |
Definition at line 499 of file tracepoint.c.
Referenced by validate_actionline().
|
static |
Definition at line 617 of file tracepoint.c.
References ax_reqs(), agent_expr::buf, MAX_AGENT_EXPR_LEN, and report_agent_reqs_errors().
Referenced by collection_list::add_local_register(), collection_list::collect_symbol(), encode_actions_1(), and validate_actionline().
|
static |
Definition at line 3019 of file tracepoint.c.
References uploaded_tp::addr, all_tracepoints(), breakpoint::cond_string, uploaded_tp::cond_string, cond_string_is_same(), loc, uploaded_tp::pass, tracepoint::pass_count, uploaded_tp::step, tracepoint::step_count, and uploaded_tp::type.
Referenced by merge_uploaded_tracepoints().
|
static |
Definition at line 3119 of file tracepoint.c.
References find_trace_state_variable(), and uploaded_tsv::name.
Referenced by merge_uploaded_trace_state_variables().
struct trace_state_variable * find_trace_state_variable | ( | const char * | name | ) |
Definition at line 263 of file tracepoint.c.
References name, and tvariables.
Referenced by create_tsv_from_upload(), expr::internalvar_operation::do_generate_ax(), expr::assign_operation::do_generate_ax(), expr::assign_modify_operation::do_generate_ax(), find_matching_tsv(), mi_cmd_trace_define_variable(), trace_variable_command(), and value_of_internalvar().
struct trace_state_variable * find_trace_state_variable_by_number | ( | int | number | ) |
Definition at line 276 of file tracepoint.c.
References trace_state_variable::number, and tvariables.
Referenced by mi_cmd_trace_frame_collected().
void free_uploaded_tps | ( | struct uploaded_tp ** | utpp | ) |
Definition at line 2955 of file tracepoint.c.
References uploaded_tp::next.
Referenced by merge_uploaded_tracepoints(), and trace_save().
void free_uploaded_tsvs | ( | struct uploaded_tsv ** | utsvp | ) |
Definition at line 2988 of file tracepoint.c.
References uploaded_tsv::next, and xfree().
Referenced by merge_uploaded_trace_state_variables(), and trace_save().
struct traceframe_info * get_traceframe_info | ( | void | ) |
Definition at line 3862 of file tracepoint.c.
References current_traceframe_info, and target_traceframe_info().
Referenced by mi_cmd_trace_frame_collected(), and traceframe_available_memory().
struct bp_location * get_traceframe_location | ( | int * | stepping_frame_p | ) |
Definition at line 2718 of file tracepoint.c.
References breakpoint::first_loc(), get_current_regcache(), get_tracepoint(), breakpoint::locations(), reg_buffer::regcache, regcache_read_pc(), and tracepoint_number.
Referenced by mi_cmd_trace_frame_collected(), and tdump_command().
int get_traceframe_number | ( | void | ) |
Definition at line 2890 of file tracepoint.c.
References traceframe_number.
Referenced by call_function_by_hand_dummy(), ensure_not_tfind_mode(), get_current_frame(), tracefile_target::has_registers(), tracefile_target::has_stack(), has_stack_frames(), memory_xfer_partial_1(), mi_cmd_trace_find(), remote_target::remote_read_bytes(), remote_target::set_remote_traceframe(), tfind_1(), tfile_target::trace_find(), and tfile_target::xfer_partial().
int get_tracepoint_number | ( | void | ) |
Definition at line 2896 of file tracepoint.c.
References tracepoint_number.
Referenced by tracefile_fetch_registers().
struct uploaded_tp * get_uploaded_tp | ( | int | num, |
ULONGEST | addr, | ||
struct uploaded_tp ** | utpp ) |
Definition at line 2937 of file tracepoint.c.
References uploaded_tp::addr, uploaded_tp::next, and uploaded_tp::number.
Referenced by parse_tracepoint_definition().
struct uploaded_tsv * get_uploaded_tsv | ( | int | num, |
struct uploaded_tsv ** | utsvp ) |
Definition at line 2971 of file tracepoint.c.
References uploaded_tsv::next, and uploaded_tsv::number.
Referenced by parse_tsv_definition().
|
static |
Definition at line 2458 of file tracepoint.c.
References block_for_pc(), check_typedef(), current_language, decode_line_1(), DECODE_LINE_FUNFIRSTLINE, block::entry_pc(), block::function(), gdb_printf(), gdb_stdout, gdbarch_register_name(), type::length(), LOC_ARG, LOC_BLOCK, LOC_COMPUTED, LOC_CONST, LOC_CONST_BYTES, LOC_LABEL, LOC_LOCAL, LOC_OPTIMIZED_OUT, LOC_REF_ARG, LOC_REGISTER, LOC_REGPARM_ADDR, LOC_STATIC, LOC_TYPEDEF, LOC_UNDEF, LOC_UNRESOLVED, lookup_minimal_symbol(), bound_minimal_symbol::minsym, paddress(), QUIT, resolve_sal_pc(), string_to_location_spec(), block::superblock(), SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS, and bound_minimal_symbol::value_address().
|
static |
Definition at line 3689 of file tracepoint.c.
References current_uiout, gdbarch_addr_bit(), print_one_static_tracepoint_marker(), ui_out::table_body(), ui_out::table_header(), target_gdbarch(), target_static_tracepoint_markers_by_strid(), ui_left, and ui_noalign.
|
static |
Definition at line 468 of file tracepoint.c.
References tvariables_info_1().
Definition at line 776 of file tracepoint.c.
References memrange_absolute, memrange::start, and memrange::type.
Referenced by memrange_sortmerge().
|
static |
Definition at line 792 of file tracepoint.c.
References memrange_comp().
Referenced by collection_list::finish().
void merge_uploaded_trace_state_variables | ( | struct uploaded_tsv ** | uploaded_tsvs | ) |
Definition at line 3165 of file tracepoint.c.
References create_tsv_from_upload(), find_matching_tsv(), free_uploaded_tsvs(), gdb_printf(), info_verbose, trace_state_variable::name, uploaded_tsv::next, trace_state_variable::number, uploaded_tsv::number, and tvariables.
Referenced by remote_target::start_remote_1(), and tfile_target_open().
void merge_uploaded_tracepoints | ( | struct uploaded_tp ** | uploaded_tps | ) |
Definition at line 3047 of file tracepoint.c.
References uploaded_tp::addr, create_tracepoint_from_upload(), find_matching_tracepoint_location(), free_uploaded_tps(), gdb_printf(), get_current_arch(), loc, uploaded_tp::next, notify_breakpoint_modified(), breakpoint::number, uploaded_tp::number, tracepoint::number_on_target, and paddress().
Referenced by remote_target::start_remote_1(), and tfile_target_open().
void parse_static_tracepoint_marker_definition | ( | const char * | line, |
const char ** | pp, | ||
static_tracepoint_marker * | marker ) |
Definition at line 3546 of file tracepoint.c.
References static_tracepoint_marker::address, static_tracepoint_marker::extra, static_tracepoint_marker::gdbarch, static_tracepoint_marker::str_id, and target_gdbarch().
Referenced by remote_target::static_tracepoint_marker_at(), linux_nat_target::static_tracepoint_markers_by_strid(), remote_target::static_tracepoint_markers_by_strid(), and selftests::tracepoint_tests::test_parse_static_tracepoint_marker_definition().
void parse_trace_status | ( | const char * | line, |
struct trace_status * | ts ) |
Definition at line 3215 of file tracepoint.c.
References trace_status::buffer_free, trace_status::buffer_size, trace_status::circular_buffer, trace_status::disconnected_tracing, trace_status::notes, trace_status::running, trace_status::running_known, trace_status::start_time, trace_status::stop_desc, trace_status::stop_reason, stop_reason_names, trace_status::stop_time, trace_status::stopping_tracepoint, trace_buffer_full, trace_disconnected, trace_never_run, trace_stop_command, trace_stop_reason_unknown, trace_status::traceframe_count, trace_status::traceframes_created, tracepoint_error, tracepoint_passcount, trace_status::user_name, xfree(), and xmalloc().
Referenced by remote_target::get_trace_status(), and tfile_interp_line().
struct std::unique_ptr< traceframe_info > parse_traceframe_info | ( | const char * | tframe_info | ) |
Definition at line 3758 of file tracepoint.c.
Referenced by remote_target::traceframe_info().
void parse_tracepoint_definition | ( | const char * | line, |
struct uploaded_tp ** | utpp ) |
Definition at line 3397 of file tracepoint.c.
References uploaded_tp::actions, uploaded_tp::addr, uploaded_tp::at_string, bp_fast_tracepoint, bp_static_tracepoint, bp_tracepoint, uploaded_tp::cmd_strings, uploaded_tp::cond, uploaded_tp::cond_string, uploaded_tp::enabled, get_uploaded_tp(), uploaded_tp::orig_size, parse_tracepoint_status(), uploaded_tp::pass, uploaded_tp::step, uploaded_tp::step_actions, type, uploaded_tp::type, and xmalloc().
Referenced by tfile_interp_line(), and remote_target::upload_tracepoints().
void parse_tracepoint_status | ( | const char * | p, |
tracepoint * | tp, | ||
struct uploaded_tp * | utp ) |
Definition at line 3375 of file tracepoint.c.
References breakpoint::hit_count, uploaded_tp::hit_count, tracepoint::traceframe_usage, and uploaded_tp::traceframe_usage.
Referenced by remote_target::get_tracepoint_status(), and parse_tracepoint_definition().
void parse_tsv_definition | ( | const char * | line, |
struct uploaded_tsv ** | utsvp ) |
Definition at line 3514 of file tracepoint.c.
References uploaded_tsv::builtin, get_uploaded_tsv(), uploaded_tsv::initial_value, and uploaded_tsv::name.
Referenced by tfile_interp_line(), and remote_target::upload_trace_state_variables().
|
static |
Definition at line 3585 of file tracepoint.c.
References static_tracepoint_marker::address, current_uiout, static_tracepoint_marker::extra, ui_out::field_core_addr(), ui_out::field_fmt(), ui_out::field_signed(), ui_out::field_skip(), ui_out::field_string(), file_name_style, find_pc_line(), find_pc_sect_function(), function_name_style, static_tracepoint_marker::gdbarch, gdbarch_addr_bit(), ui_out::is_mi_like_p(), symtab_and_line::line, symtab_and_line::pc, general_symbol_info::print_name(), ui_out::spaces(), static_tracepoints_here(), static_tracepoint_marker::str_id, cli_style_option::style(), symtab_and_line::symtab, symtab_to_filename_for_display(), symtab_to_fullname(), ui_out::text(), and ui_out::wrap_hint().
Referenced by info_static_tracepoint_markers_command().
|
static |
Definition at line 1514 of file tracepoint.c.
References all_tracepoints().
Referenced by query_if_trace_running().
void query_if_trace_running | ( | int | from_tty | ) |
Definition at line 2015 of file tracepoint.c.
References current_trace_status(), disconnected_tracing, process_tracepoint_on_disconnect(), query(), trace_status::running, and target_get_trace_status().
Referenced by detach_command(), disconnect_command(), and quit_command().
|
static |
Definition at line 592 of file tracepoint.c.
References agent_flaw_none, agent_expr::flaw, agent_expr::max_height, and agent_expr::min_height.
Referenced by finalize_tracepoint_aexpr().
void save_trace_state_variables | ( | struct ui_file * | fp | ) |
Definition at line 476 of file tracepoint.c.
References gdb_printf(), and tvariables.
Referenced by save_breakpoints().
|
static |
Definition at line 3732 of file tracepoint.c.
References value::allocate(), value::contents_raw(), current_inferior(), init_vector_type(), TARGET_OBJECT_STATIC_TRACE_DATA, target_read_alloc(), and type.
|
static |
Definition at line 2840 of file tracepoint.c.
References circular_trace_buffer, and target_set_circular_trace_buffer().
void set_current_traceframe | ( | int | num | ) |
Definition at line 2905 of file tracepoint.c.
References clear_traceframe_info(), registers_changed(), set_traceframe_num(), target_trace_find(), tfind_number, and traceframe_number.
Referenced by fetch_inferior_event(), tfind_1(), and scoped_restore_current_traceframe::~scoped_restore_current_traceframe().
|
static |
Definition at line 2833 of file tracepoint.c.
References disconnected_tracing, and target_set_disconnected_tracing().
|
static |
Definition at line 2847 of file tracepoint.c.
References target_set_trace_buffer_size(), and trace_buffer_size.
|
static |
Definition at line 2866 of file tracepoint.c.
References target_set_trace_notes(), and trace_notes.
|
static |
Definition at line 2878 of file tracepoint.c.
References target_set_trace_notes(), and trace_stop_notes.
|
static |
Definition at line 2854 of file tracepoint.c.
References target_set_trace_notes(), and trace_user.
|
static |
Definition at line 209 of file tracepoint.c.
References clear_internalvar(), find_pc_function(), find_pc_line(), get_frame_pc_if_available(), symtab_and_line::line, general_symbol_info::linkage_name(), lookup_internalvar(), set_internalvar_integer(), set_internalvar_string(), symtab_and_line::symtab, and symtab_to_filename_for_display().
Referenced by tfind_1(), and trace_reset_local_state().
|
static |
Definition at line 191 of file tracepoint.c.
References lookup_internalvar(), set_internalvar_integer(), and traceframe_number.
Referenced by set_current_traceframe(), and trace_reset_local_state().
|
static |
Definition at line 199 of file tracepoint.c.
References lookup_internalvar(), set_internalvar_integer(), and tracepoint_number.
Referenced by tfind_1(), and trace_reset_local_state().
void start_tracing | ( | const char * | notes | ) |
Definition at line 1560 of file tracepoint.c.
References all_tracepoints(), bp_enabled, bp_fast_tracepoint, circular_trace_buffer, current_trace_status(), disconnected_tracing, loc, may_insert_fast_tracepoints, may_insert_tracepoints, notify_breakpoint_modified(), tracepoint::number_on_target, trace_status::running, target_download_trace_state_variable(), target_download_tracepoint(), target_set_circular_trace_buffer(), target_set_disconnected_tracing(), target_set_trace_buffer_size(), target_set_trace_notes(), target_supports_enable_disable_tracepoint(), target_trace_init(), target_trace_set_readonly_regions(), target_trace_start(), trace_buffer_size, trace_notes, trace_reset_local_state(), trace_user, and tvariables.
Referenced by mi_cmd_trace_start(), and tstart_command().
void stop_tracing | ( | const char * | note | ) |
Definition at line 1703 of file tracepoint.c.
References all_tracepoints(), bp_fast_tracepoint, current_trace_status(), loc, may_insert_fast_tracepoints, may_insert_tracepoints, trace_status::running, target_set_trace_notes(), target_trace_stop(), and trace_stop_notes.
Referenced by mi_cmd_trace_stop(), and tstop_command().
|
static |
Definition at line 2783 of file tracepoint.c.
References all_tracepoint_actions(), breakpoint_commands(), gdb_printf(), get_current_frame(), get_traceframe_location(), loc, select_frame(), trace_dump_actions(), traceframe_number, and tracepoint_number.
|
static |
Definition at line 517 of file tracepoint.c.
Referenced by encode_actions_1(), and validate_actionline().
void tfind_1 | ( | enum trace_find_type | type, |
int | num, | ||
CORE_ADDR | addr1, | ||
CORE_ADDR | addr2, | ||
int | from_tty ) |
Definition at line 2067 of file tracepoint.c.
References current_uiout, do_displays(), ui_out::field_signed(), ui_out::field_string(), gdb_printf(), get_current_frame(), get_frame_id(), get_selected_frame(), get_traceframe_number(), get_tracepoint_by_number_on_target(), has_stack_frames(), info_verbose, interps_notify_traceframe_changed(), ui_out::is_mi_like_p(), null_frame_id, breakpoint::number, print_stack_frame(), reinit_frame_cache(), set_current_traceframe(), set_traceframe_context(), set_tracepoint_num(), SRC_AND_LOC, SRC_LINE, target_dcache_invalidate(), target_trace_find(), tfind_command(), tfind_number, traceframe_number, and tracepoint_number.
Referenced by mi_cmd_trace_find(), tfind_command_1(), tfind_line_command(), tfind_outside_command(), tfind_pc_command(), tfind_range_command(), and tfind_tracepoint_command().
|
static |
Definition at line 2259 of file tracepoint.c.
References tfind_command_1().
Referenced by tfind_1().
|
static |
Definition at line 2224 of file tracepoint.c.
References check_trace_running(), current_trace_status(), parse_and_eval_long(), tfind_1(), tfind_number, and traceframe_number.
Referenced by tfind_command(), tfind_end_command(), and tfind_start_command().
|
static |
Definition at line 2266 of file tracepoint.c.
References tfind_command_1().
|
static |
Definition at line 2332 of file tracepoint.c.
References check_trace_running(), current_trace_status(), DECODE_LINE_FUNFIRSTLINE, decode_line_with_current_source(), find_line_pc_range(), find_pc_line(), gdb_printf(), gdb_stdout, get_current_arch(), get_current_frame(), get_frame_pc(), symtab_and_line::line, print_address(), symtab_and_line::symtab, symtab_to_filename_for_display(), tfind_1(), tfind_outside, and tfind_range.
|
static |
Definition at line 2424 of file tracepoint.c.
References current_trace_status(), gdb_printf(), parse_and_eval_address(), tfind_1(), and tfind_outside.
|
static |
Definition at line 2280 of file tracepoint.c.
References check_trace_running(), current_trace_status(), get_current_regcache(), parse_and_eval_address(), regcache_read_pc(), tfind_1(), and tfind_pc.
|
static |
Definition at line 2392 of file tracepoint.c.
References check_trace_running(), current_trace_status(), gdb_printf(), parse_and_eval_address(), tfind_1(), and tfind_range.
|
static |
Definition at line 2273 of file tracepoint.c.
References tfind_command_1().
|
static |
Definition at line 2296 of file tracepoint.c.
References check_trace_running(), current_trace_status(), get_tracepoint(), tracepoint::number_on_target, parse_and_eval_long(), tfind_1(), tfind_tp, and tracepoint_number.
|
static |
Definition at line 2628 of file tracepoint.c.
References command_line::body_list_0, command_line::body_list_1, cmd_simple_func_eq(), cmdlist, collect_pseudocommand(), decode_agent_options(), gdb_printf(), info_args_command(), info_locals_command(), command_line::line, lookup_cmd(), command_line::next, output_command(), QUIT, registers_info(), trace_dump_actions(), and while_stepping_pseudocommand().
Referenced by tdump_command(), and trace_dump_actions().
void trace_reset_local_state | ( | void | ) |
Definition at line 1551 of file tracepoint.c.
References clear_traceframe_info(), set_traceframe_context(), set_traceframe_num(), and set_tracepoint_num().
Referenced by remote_target::close(), tfile_target::close(), disconnect_tracing(), and start_tracing().
void trace_status_mi | ( | int | on_stop | ) |
Definition at line 1901 of file tracepoint.c.
References trace_status::buffer_free, trace_status::buffer_size, trace_status::circular_buffer, current_trace_status(), current_uiout, trace_status::disconnected_tracing, ui_out::field_signed(), ui_out::field_string(), trace_status::filename, trace_status::notes, trace_status::running, trace_status::running_known, trace_status::start_time, status, trace_status::stop_desc, trace_status::stop_reason, trace_status::stop_time, trace_status::stopping_tracepoint, target_get_trace_status(), trace_buffer_full, trace_disconnected, trace_stop_command, trace_stop_reason_unknown, trace_status::traceframe_count, trace_status::traceframes_created, tracepoint_error, tracepoint_passcount, and trace_status::user_name.
Referenced by mi_cmd_trace_status(), and mi_cmd_trace_stop().
|
static |
Definition at line 327 of file tracepoint.c.
References create_trace_state_variable(), error_no_arg(), find_trace_state_variable(), gdb_printf(), trace_state_variable::initial_value, interps_notify_tsv_created(), interps_notify_tsv_modified(), name, trace_state_variable::name, parse_and_eval(), validate_trace_state_variable_name(), and value_as_long().
int traceframe_available_memory | ( | std::vector< mem_range > * | result, |
CORE_ADDR | memaddr, | ||
ULONGEST | len ) |
Definition at line 3877 of file tracepoint.c.
References get_traceframe_info(), mem_ranges_overlap(), and normalize_mem_ranges().
Referenced by mi_cmd_trace_frame_collected(), and remote_target::remote_read_bytes().
|
static |
Definition at line 1674 of file tracepoint.c.
References current_trace_status(), dont_repeat(), query(), and start_tracing().
|
static |
Definition at line 1741 of file tracepoint.c.
References all_tracepoints(), trace_status::buffer_free, trace_status::buffer_size, trace_status::circular_buffer, current_trace_status(), trace_status::disconnected_tracing, trace_status::filename, gdb_printf(), trace_status::notes, trace_status::running, trace_status::running_known, trace_status::start_time, status, trace_status::stop_desc, trace_status::stop_reason, trace_status::stop_time, trace_status::stopping_tracepoint, target_get_trace_status(), target_get_tracepoint_status(), trace_buffer_full, trace_disconnected, trace_never_run, trace_stop_command, trace_stop_reason_unknown, trace_status::traceframe_count, traceframe_number, trace_status::traceframes_created, tracepoint_error, tracepoint_number, tracepoint_passcount, and trace_status::user_name.
|
static |
Definition at line 1694 of file tracepoint.c.
References current_trace_status(), and stop_tracing().
void tvariables_info_1 | ( | void | ) |
Definition at line 408 of file tracepoint.c.
References current_trace_status(), current_uiout, ui_out::field_string(), ui_out::is_mi_like_p(), metadata_style, cli_style_option::style(), ui_out::table_body(), ui_out::table_header(), target_get_trace_state_variable_value(), ui_out::text(), traceframe_number, tvariables, and ui_left.
Referenced by info_tvariables_command(), and mi_cmd_trace_list_variables().
void validate_actionline | ( | const char * | line, |
tracepoint * | t ) |
Definition at line 629 of file tracepoint.c.
References symbol::aclass(), block_for_pc(), cmd_simple_func_eq(), cmdlist, collect_pseudocommand(), decode_agent_options(), end_actions_pseudocommand(), finalize_tracepoint_aexpr(), gen_eval_for_expr(), gen_trace_for_expr(), expr::var_value_operation::get_symbol(), loc, LOC_CONST, LOC_OPTIMIZED_OUT, breakpoint::locations(), lookup_cmd(), parse_exp_1(), PARSER_COMMA_TERMINATES, general_symbol_info::print_name(), QUIT, tracepoint::step_count, teval_pseudocommand(), symbol::value_longest(), and while_stepping_pseudocommand().
Referenced by all_tracepoint_actions(), commands_command_1(), mi_cmd_break_commands(), and validate_commands_for_breakpoint().
void validate_trace_state_variable_name | ( | const char * | name | ) |
Definition at line 303 of file tracepoint.c.
References name.
Referenced by mi_cmd_trace_define_variable(), and trace_variable_command().
|
static |
Definition at line 505 of file tracepoint.c.
Referenced by encode_actions_1(), trace_dump_actions(), and validate_actionline().
|
static |
Definition at line 137 of file tracepoint.c.
Referenced by set_circular_trace_buffer(), and start_tracing().
|
static |
Definition at line 124 of file tracepoint.c.
Referenced by clear_traceframe_info(), and get_traceframe_info().
std::string default_collect |
Definition at line 130 of file tracepoint.c.
Referenced by all_tracepoint_actions(), default_collect_info(), remote_target::download_tracepoint(), and save_breakpoints().
|
static |
Definition at line 132 of file tracepoint.c.
Referenced by query_if_trace_running(), set_disconnected_tracing(), and start_tracing().
|
static |
Definition at line 112 of file tracepoint.c.
Referenced by create_trace_state_variable().
|
static |
Definition at line 3912 of file tracepoint.c.
const char* stop_reason_names[] |
Definition at line 164 of file tracepoint.c.
Referenced by parse_trace_status(), and tfile_write_status().
|
static |
Definition at line 127 of file tracepoint.c.
|
static |
Definition at line 142 of file tracepoint.c.
Referenced by set_trace_buffer_size(), and start_tracing().
|
static |
Definition at line 150 of file tracepoint.c.
Referenced by set_trace_notes(), and start_tracing().
|
static |
Definition at line 162 of file tracepoint.c.
Referenced by current_trace_status().
|
static |
Definition at line 154 of file tracepoint.c.
Referenced by set_trace_stop_notes(), and stop_tracing().
|
static |
Definition at line 146 of file tracepoint.c.
Referenced by set_trace_user(), and start_tracing().
|
static |
Definition at line 115 of file tracepoint.c.
Referenced by get_traceframe_number(), set_current_traceframe(), set_traceframe_num(), tdump_command(), tfind_1(), tfind_command_1(), tstatus_command(), and tvariables_info_1().
|
static |
Definition at line 118 of file tracepoint.c.
Referenced by get_traceframe_location(), get_tracepoint_number(), set_tracepoint_num(), tdump_command(), tfind_1(), tfind_tracepoint_command(), and tstatus_command().
|
static |
Definition at line 108 of file tracepoint.c.
Referenced by create_trace_state_variable(), delete_trace_state_variable(), delete_trace_variable_command(), find_trace_state_variable(), find_trace_state_variable_by_number(), merge_uploaded_trace_state_variables(), save_trace_state_variables(), start_tracing(), and tvariables_info_1().
cmd_list_element* while_stepping_cmd_element = nullptr |
Definition at line 3919 of file tracepoint.c.
Referenced by process_next_line().