GDB (xrefs)
|
#include "breakpoint.h"
#include "memrange.h"
#include "gdbsupport/gdb_vecs.h"
#include <vector>
#include <string>
Go to the source code of this file.
Classes | |
struct | traceframe_info |
struct | trace_state_variable |
struct | trace_status |
struct | uploaded_tp |
struct | uploaded_tsv |
struct | static_tracepoint_marker |
struct | memrange |
class | collection_list |
struct | scoped_restore_current_traceframe |
Typedefs | |
typedef std::unique_ptr< traceframe_info > | traceframe_info_up |
Enumerations | |
enum | trace_stop_reason { trace_stop_reason_unknown , trace_never_run , trace_stop_command , trace_buffer_full , trace_disconnected , tracepoint_passcount , tracepoint_error } |
enum | trace_find_type { tfind_number , tfind_pc , tfind_tp , tfind_range , tfind_outside } |
Functions | |
struct trace_status * | current_trace_status (void) |
void | parse_static_tracepoint_marker_definition (const char *line, const char **pp, static_tracepoint_marker *marker) |
int | get_traceframe_number (void) |
int | get_tracepoint_number (void) |
void | set_current_traceframe (int num) |
const char * | decode_agent_options (const char *exp, int *trace_string) |
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) |
void | validate_actionline (const char *, tracepoint *) |
void | validate_trace_state_variable_name (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) |
struct trace_state_variable * | create_trace_state_variable (const char *name) |
int | encode_source_string (int num, ULONGEST addr, const char *srctype, const char *src, char *buf, int buf_size) |
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) |
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) |
struct tracepoint * | create_tracepoint_from_upload (struct uploaded_tp *utp) |
void | merge_uploaded_tracepoints (struct uploaded_tp **utpp) |
void | merge_uploaded_trace_state_variables (struct uploaded_tsv **utsvp) |
void | query_if_trace_running (int from_tty) |
void | disconnect_tracing (void) |
void | trace_reset_local_state (void) |
void | check_trace_running (struct trace_status *) |
void | start_tracing (const char *notes) |
void | stop_tracing (const char *notes) |
void | trace_status_mi (int on_stop) |
void | tvariables_info_1 (void) |
void | save_trace_state_variables (struct ui_file *fp) |
void | tfind_1 (enum trace_find_type type, int num, CORE_ADDR addr1, CORE_ADDR addr2, int from_tty) |
void | trace_save_tfile (const char *filename, int target_does_save) |
void | trace_save_ctf (const char *dirname, int target_does_save) |
traceframe_info_up | parse_traceframe_info (const char *tframe_info) |
int | traceframe_available_memory (std::vector< mem_range > *result, CORE_ADDR memaddr, ULONGEST len) |
struct traceframe_info * | get_traceframe_info (void) |
struct bp_location * | get_traceframe_location (int *stepping_frame_p) |
Variables | |
std::string | default_collect |
int | trace_regblock_size |
const char * | stop_reason_names [] |
cmd_list_element * | while_stepping_cmd_element |
typedef std::unique_ptr<traceframe_info> traceframe_info_up |
Definition at line 40 of file tracepoint.h.
enum trace_find_type |
Enumerator | |
---|---|
tfind_number | |
tfind_pc | |
tfind_tp | |
tfind_range | |
tfind_outside |
Definition at line 405 of file tracepoint.h.
enum trace_stop_reason |
Enumerator | |
---|---|
trace_stop_reason_unknown | |
trace_never_run | |
trace_stop_command | |
trace_buffer_full | |
trace_disconnected | |
tracepoint_passcount | |
tracepoint_error |
Definition at line 81 of file tracepoint.h.
|
extern |
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().
|
extern |
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().
|
extern |
Definition at line 14120 of file breakpoint.c.
References uploaded_tp::actions, uploaded_tp::addr, uploaded_tp::at_string, breakpoint_set_commands(), uploaded_tp::cmd_strings, code_breakpoint_ops, uploaded_tp::cond, uploaded_tp::cond_string, create_breakpoint(), CREATE_BREAKPOINT_FLAGS_INSERTED, current_language, uploaded_tp::enabled, get_current_arch(), get_tracepoint(), breakpoint::hit_count, uploaded_tp::hit_count, breakpoint::locspec, next_cmd, breakpoint::number, uploaded_tp::number, uploaded_tp::pass, pending_break_support, read_command_lines_1(), read_uploaded_action(), uploaded_tp::step_actions, string_to_location_spec(), this_utp, trace_pass_command(), tracepoint::traceframe_usage, uploaded_tp::traceframe_usage, tracepoint_count, and uploaded_tp::type.
Referenced by merge_uploaded_tracepoints().
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().
|
extern |
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().
|
extern |
Definition at line 2056 of file tracepoint.c.
References trace_reset_local_state().
Referenced by detach_command(), disconnect_command(), and quit_force().
|
extern |
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().
|
extern |
Definition at line 1495 of file tracepoint.c.
References encode_actions(), and collection_list::stringify().
Referenced by remote_target::download_tracepoint().
|
extern |
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().
|
extern |
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().
|
extern |
Definition at line 276 of file tracepoint.c.
References trace_state_variable::number, and tvariables.
Referenced by mi_cmd_trace_frame_collected().
|
extern |
Definition at line 2955 of file tracepoint.c.
References uploaded_tp::next.
Referenced by merge_uploaded_tracepoints(), and trace_save().
|
extern |
Definition at line 2988 of file tracepoint.c.
References uploaded_tsv::next, and xfree().
Referenced by merge_uploaded_trace_state_variables(), and trace_save().
|
extern |
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().
|
extern |
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().
|
extern |
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().
|
extern |
Definition at line 2896 of file tracepoint.c.
References tracepoint_number.
Referenced by tracefile_fetch_registers().
|
extern |
Definition at line 2937 of file tracepoint.c.
References uploaded_tp::addr, uploaded_tp::next, and uploaded_tp::number.
Referenced by parse_tracepoint_definition().
|
extern |
Definition at line 2971 of file tracepoint.c.
References uploaded_tsv::next, and uploaded_tsv::number.
Referenced by parse_tsv_definition().
|
extern |
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().
|
extern |
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().
|
extern |
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().
|
extern |
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().
|
extern |
Definition at line 3758 of file tracepoint.c.
Referenced by remote_target::traceframe_info().
|
extern |
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().
|
extern |
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().
|
extern |
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().
|
extern |
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().
|
extern |
Definition at line 476 of file tracepoint.c.
References gdb_printf(), and tvariables.
Referenced by save_breakpoints().
|
extern |
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().
|
extern |
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().
|
extern |
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().
|
extern |
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().
|
extern |
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().
|
extern |
Definition at line 370 of file tracefile.c.
References ctf_trace_file_writer_new(), and trace_save().
Referenced by mi_cmd_trace_save(), and tsave_command().
|
extern |
Definition at line 361 of file tracefile.c.
References tfile_trace_file_writer_new(), and trace_save().
Referenced by mi_cmd_trace_save(), and tsave_command().
|
extern |
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().
|
extern |
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().
|
extern |
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().
|
extern |
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().
|
extern |
Definition at line 303 of file tracepoint.c.
References name.
Referenced by mi_cmd_trace_define_variable(), and trace_variable_command().
|
extern |
Definition at line 130 of file tracepoint.c.
Referenced by all_tracepoint_actions(), default_collect_info(), remote_target::download_tracepoint(), and save_breakpoints().
|
extern |
Definition at line 164 of file tracepoint.c.
Referenced by parse_trace_status(), and tfile_write_status().
|
extern |
Definition at line 423 of file tracefile-tfile.c.
Referenced by tfile_target::fetch_registers(), remote_target::get_trace_status(), tfile_interp_line(), tfile_target_open(), trace_save(), and traceframe_walk_blocks().
|
extern |
Definition at line 3919 of file tracepoint.c.
Referenced by process_next_line().