|
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 "observer.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 "ctf.h"#include "filestuff.h"#include "rsp-low.h"#include "tracefile.h"#include "location.h"#include <algorithm>#include "readline/readline.h"#include "readline/history.h"#include <unistd.h>#include "xml-support.h"Go to the source code of this file.
Classes | |
| struct | add_local_symbols_data |
| struct | current_traceframe_cleanup |
Macros | |
| #define | MAX_AGENT_EXPR_LEN 184 |
Typedefs | |
| typedef struct trace_state_variable | tsv_s |
Enumerations | |
| enum | { memrange_absolute = -1 } |
Functions | |
| DEF_VEC_O (tsv_s) | |
| static | VEC (tsv_s) |
| 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 (struct frame_info *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) |
| void | validate_actionline (const char *line, struct breakpoint *b) |
| static bool | memrange_comp (const memrange &a, const memrange &b) |
| static void | memrange_sortmerge (std::vector< memrange > &memranges) |
| static void | do_collect_symbol (const char *print_name, struct symbol *sym, void *cb_data) |
| 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 struct command_line * | all_tracepoint_actions_and_cleanup (struct breakpoint *t) |
| 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) |
| static char * | mem2hex (gdb_byte *mem, char *buf, int count) |
| int | get_traceframe_number (void) |
| int | get_tracepoint_number (void) |
| void | set_current_traceframe (int num) |
| static void | do_restore_current_traceframe_cleanup (void *arg) |
| static void | restore_current_traceframe_cleanup_dtor (void *arg) |
| struct cleanup * | make_cleanup_restore_current_traceframe (void) |
| 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, struct breakpoint *bp, 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 | free_current_marker (void *arg) |
| void | parse_static_tracepoint_marker_definition (const char *line, const char **pp, struct static_tracepoint_marker *marker) |
| void | release_static_tracepoint_marker (struct static_tracepoint_marker *marker) |
| static void | print_one_static_tracepoint_marker (int count, struct 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) |
| static void | traceframe_info_start_memory (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s) *attributes) |
| static void | traceframe_info_start_tvar (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s) *attributes) |
| traceframe_info_up | 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 (void) |
Variables | |
| void(* | deprecated_trace_find_hook )(char *arg, int from_tty) |
| void(* | deprecated_trace_start_stop_hook )(int start, int from_tty) |
| static const char | hexchars [] = "0123456789abcdef" |
| static const struct gdb_xml_attribute | memory_attributes [] |
| static const struct gdb_xml_attribute | tvar_attributes [] |
| static const struct gdb_xml_element | traceframe_info_children [] |
| static const struct gdb_xml_element | traceframe_info_elements [] |
| static const struct internalvar_funcs | sdata_funcs |
| #define MAX_AGENT_EXPR_LEN 184 |
Definition at line 78 of file tracepoint.c.
Referenced by collection_list::stringify(), and validate_actionline().
| typedef struct trace_state_variable tsv_s |
Definition at line 117 of file tracepoint.c.
| anonymous enum |
| Enumerator | |
|---|---|
| memrange_absolute | |
Definition at line 785 of file tracepoint.c.
| void _initialize_tracepoint | ( | void | ) |
Definition at line 4101 of file tracepoint.c.
References _, actions_command(), add_alias_cmd(), add_cmd(), add_com(), add_com_alias(), add_info(), add_prefix_cmd(), add_setshow_boolean_cmd(), add_setshow_string_cmd(), add_setshow_zuinteger_unlimited_cmd(), class_alias, class_trace, cmdlist, collect_pseudocommand(), create_internalvar_type_lazy(), default_collect, delete_trace_variable_command(), deletelist, end_actions_pseudocommand(), expression_completer(), info_scope_command(), info_static_tracepoint_markers_command(), info_tvariables_command(), no_class, sdata_funcs, set_circular_trace_buffer(), set_cmd_completer(), set_disconnected_tracing(), set_trace_buffer_size(), set_trace_notes(), set_trace_stop_notes(), set_trace_user(), setlist, showlist, tdump_command(), teval_pseudocommand(), tfind_command(), tfind_end_command(), tfind_line_command(), tfind_outside_command(), tfind_pc_command(), tfind_range_command(), tfind_start_command(), tfind_tracepoint_command(), trace_variable_command(), tstart_command(), tstatus_command(), tstop_command(), and while_stepping_pseudocommand().
|
static |
Definition at line 596 of file tracepoint.c.
References breakpoint_set_commands(), check_tracepoint_command(), get_tracepoint_by_number(), breakpoint::number, read_command_lines(), string, and string_printf().
Referenced by _initialize_tracepoint().
|
static |
Definition at line 2813 of file tracepoint.c.
References breakpoint_commands(), default_collect, command_line::line, make_cleanup(), command_line::next, validate_actionline(), xfree(), XNEW, and xstrprintf().
Referenced by encode_actions(), and tdump_command().
| void check_trace_running | ( | struct trace_status * | status | ) |
Definition at line 2241 of file tracepoint.c.
References _, error(), and 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 198 of file tracepoint.c.
Referenced by set_current_traceframe(), and trace_reset_local_state().
|
static |
Definition at line 541 of file tracepoint.c.
Referenced by _initialize_tracepoint(), encode_actions_1(), trace_dump_actions(), and validate_actionline().
|
static |
Definition at line 3128 of file tracepoint.c.
Referenced by find_matching_tracepoint_location().
| struct trace_state_variable* create_trace_state_variable | ( | const char * | name | ) |
Definition at line 268 of file tracepoint.c.
References memset(), trace_state_variable::name, name, trace_state_variable::number, and VEC_safe_push.
Referenced by create_tsv_from_upload(), mi_cmd_trace_define_variable(), and trace_variable_command().
|
static |
Definition at line 3262 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, uploaded_tsv::name, observer_notify_tsv_created(), string, and string_printf().
Referenced by merge_uploaded_trace_state_variables().
| struct trace_status* current_trace_status | ( | void | ) |
Definition at line 189 of file tracepoint.c.
Referenced by disable_breakpoint(), enable_breakpoint_disp(), enable_disable_bp_num_loc(), mi_cmd_trace_find(), query_if_trace_running(), remote_can_download_tracepoint(), remote_start_remote(), start_tracing(), stop_tracing(), tfile_interp_line(), tfile_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 555 of file tracepoint.c.
References _, error(), get_user_print_options(), value_print_options::print_max, skip_spaces(), and target_supports_string_tracing.
Referenced by agent_eval_command_one(), encode_actions_1(), trace_dump_actions(), and validate_actionline().
| DEF_VEC_O | ( | tsv_s | ) |
|
static |
Definition at line 310 of file tracepoint.c.
References _, trace_state_variable::name, name, observer_notify_tsv_deleted(), VEC_iterate, VEC_unordered_remove, warning(), and xfree().
Referenced by delete_trace_variable_command().
|
static |
Definition at line 413 of file tracepoint.c.
References _, gdb::argv, delete_trace_state_variable(), dont_repeat(), observer_notify_tsv_deleted(), query(), VEC_free, and warning().
Referenced by _initialize_tracepoint().
| void disconnect_tracing | ( | void | ) |
Definition at line 2094 of file tracepoint.c.
References trace_reset_local_state().
Referenced by detach_command(), disconnect_command(), and quit_force().
|
static |
Definition at line 1036 of file tracepoint.c.
References collection_list::add_wholly_collected(), add_local_symbols_data::collect, collection_list::collect_symbol(), add_local_symbols_data::count, add_local_symbols_data::frame_offset, add_local_symbols_data::frame_regno, add_local_symbols_data::gdbarch, add_local_symbols_data::pc, and add_local_symbols_data::trace_string.
Referenced by collection_list::add_local_symbols().
|
static |
Definition at line 3024 of file tracepoint.c.
References set_current_traceframe(), and current_traceframe_cleanup::traceframe_number.
Referenced by make_cleanup_restore_current_traceframe().
| void encode_actions | ( | struct bp_location * | tloc, |
| struct collection_list * | tracepoint_list, | ||
| struct collection_list * | stepping_list | ||
| ) |
Definition at line 1477 of file tracepoint.c.
References bp_location::address, all_tracepoint_actions_and_cleanup(), 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 1247 of file tracepoint.c.
References _, collection_list::add_aexpr(), collection_list::add_local_symbols(), collection_list::add_memrange(), collection_list::add_register(), collection_list::add_static_trace_data(), collection_list::add_wholly_collected(), bp_location::address, collection_list::append_exp(), ax_reqs(), block_for_pc(), command_line::body_list, check_typedef(), cmd_cfunc_eq(), cmdlist, collect_pseudocommand(), collection_list::collect_symbol(), decode_agent_options(), error(), evaluate_expression(), gdb_assert, gdbarch_num_regs(), gen_eval_for_expr(), gen_trace_for_expr(), gen_trace_for_return_address(), info_verbose, internal_error(), command_line::line, lookup_cmd(), memrange_absolute, name, command_line::next, parse_exp_1(), printf_filtered(), QUIT, report_agent_reqs_errors(), skip_spaces(), SYMBOL_NATURAL_NAME, target_gdbarch(), teval_pseudocommand(), TYPE_LENGTH, user_reg_map_name_to_regnum(), value_address(), and while_stepping_pseudocommand().
Referenced by encode_actions().
| void encode_actions_rsp | ( | struct bp_location * | tloc, |
| std::vector< std::string > * | tdp_actions, | ||
| std::vector< std::string > * | stepping_actions | ||
| ) |
Definition at line 1500 of file tracepoint.c.
References encode_actions(), and collection_list::stringify().
Referenced by remote_download_tracepoint().
| int encode_source_string | ( | int | tpnum, |
| ULONGEST | addr, | ||
| const char * | srctype, | ||
| const char * | src, | ||
| char * | buf, | ||
| int | buf_size | ||
| ) |
Definition at line 2875 of file tracepoint.c.
References _, bin2hex(), error(), and phex_nz().
Referenced by remote_download_command_source(), remote_download_tracepoint(), and tfile_write_uploaded_tp().
|
static |
Definition at line 529 of file tracepoint.c.
Referenced by _initialize_tracepoint(), and validate_actionline().
|
static |
Definition at line 3142 of file tracepoint.c.
References uploaded_tp::addr, bp_location::address, uploaded_tp::cond_string, breakpoint::cond_string, cond_string_is_same(), breakpoint::loc, loc, bp_location::next, uploaded_tp::pass, tracepoint::pass_count, uploaded_tp::step, tracepoint::step_count, uploaded_tp::type, breakpoint::type, VEC(), and VEC_iterate.
Referenced by merge_uploaded_tracepoints().
|
static |
Definition at line 3253 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 281 of file tracepoint.c.
References trace_state_variable::name, name, and VEC_iterate.
Referenced by create_tsv_from_upload(), find_matching_tsv(), gen_expr(), 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 297 of file tracepoint.c.
References trace_state_variable::number, and VEC_iterate.
Referenced by mi_cmd_trace_frame_collected().
| void free_current_marker | ( | void * | arg | ) |
Definition at line 3678 of file tracepoint.c.
References release_static_tracepoint_marker(), and xfree().
Referenced by VEC().
| void free_uploaded_tps | ( | struct uploaded_tp ** | utpp | ) |
Definition at line 3078 of file tracepoint.c.
References uploaded_tp::next, and xfree().
Referenced by merge_uploaded_tracepoints(), and trace_save().
| void free_uploaded_tsvs | ( | struct uploaded_tsv ** | utsvp | ) |
Definition at line 3111 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 4042 of file tracepoint.c.
References 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 2771 of file tracepoint.c.
References _, bp_location::address, error(), get_current_regcache(), get_tracepoint(), breakpoint::loc, bp_location::next, regcache::regcache(), and regcache_read_pc().
Referenced by mi_cmd_trace_frame_collected(), and tdump_command().
| int get_traceframe_number | ( | void | ) |
Definition at line 2976 of file tracepoint.c.
Referenced by call_function_by_hand_dummy(), ensure_not_tfind_mode(), get_current_frame(), has_stack_frames(), memory_xfer_partial_1(), mi_cmd_trace_find(), remote_read_bytes(), set_remote_traceframe(), tfile_trace_find(), tfile_xfer_partial(), tfind_1(), tracefile_has_registers(), and tracefile_has_stack().
| int get_tracepoint_number | ( | void | ) |
Definition at line 2982 of file tracepoint.c.
Referenced by tracefile_fetch_registers().
| struct uploaded_tp* get_uploaded_tp | ( | int | num, |
| ULONGEST | addr, | ||
| struct uploaded_tp ** | utpp | ||
| ) |
Definition at line 3057 of file tracepoint.c.
References uploaded_tp::addr, uploaded_tp::next, uploaded_tp::number, and XCNEW.
Referenced by parse_tracepoint_definition().
| struct uploaded_tsv* get_uploaded_tsv | ( | int | num, |
| struct uploaded_tsv ** | utsvp | ||
| ) |
Definition at line 3094 of file tracepoint.c.
References uploaded_tsv::next, uploaded_tsv::number, and XCNEW.
Referenced by parse_tsv_definition().
|
static |
Definition at line 2495 of file tracepoint.c.
References _, ALL_BLOCK_SYMBOLS, block_for_pc(), BLOCK_FUNCTION, BLOCK_START, BLOCK_SUPERBLOCK, BMSYMBOL_VALUE_ADDRESS, check_typedef(), current_language, decode_line_1(), DECODE_LINE_FUNFIRSTLINE, error(), fprintf_filtered(), gdb_assert_not_reached, gdb_stdout, gdbarch_register_name(), hex_string(), 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(), plongest(), printf_filtered(), QUIT, resolve_sal_pc(), string_to_event_location(), symbol_arch(), SYMBOL_BLOCK_VALUE, SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_IS_ARGUMENT, SYMBOL_LINKAGE_NAME, SYMBOL_PRINT_NAME, SYMBOL_REGISTER_OPS, SYMBOL_TYPE, SYMBOL_VALUE, SYMBOL_VALUE_ADDRESS, SYMBOL_VALUE_BYTES, and TYPE_LENGTH.
Referenced by _initialize_tracepoint().
|
static |
Definition at line 3854 of file tracepoint.c.
References current_uiout, do_cleanups(), gdbarch_addr_bit(), make_cleanup(), print_one_static_tracepoint_marker(), release_static_tracepoint_marker(), ui_out::table_body(), ui_out::table_header(), target_gdbarch(), target_static_tracepoint_markers_by_strid, ui_left, ui_noalign, VEC(), VEC_cleanup, and VEC_iterate.
Referenced by _initialize_tracepoint().
|
static |
Definition at line 495 of file tracepoint.c.
References tvariables_info_1().
Referenced by _initialize_tracepoint().
| struct cleanup* make_cleanup_restore_current_traceframe | ( | void | ) |
Definition at line 3042 of file tracepoint.c.
References do_restore_current_traceframe_cleanup(), make_cleanup_dtor(), restore_current_traceframe_cleanup_dtor(), current_traceframe_cleanup::traceframe_number, and XNEW.
Referenced by fetch_inferior_event().
|
static |
Definition at line 2958 of file tracepoint.c.
References hexchars.
Referenced by collection_list::stringify().
Definition at line 794 of file tracepoint.c.
References memrange_absolute, memrange::start, and memrange::type.
Referenced by memrange_sortmerge().
|
static |
Definition at line 810 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 3299 of file tracepoint.c.
References _, create_tsv_from_upload(), find_matching_tsv(), free_uploaded_tsvs(), info_verbose, trace_state_variable::name, uploaded_tsv::next, trace_state_variable::number, uploaded_tsv::number, printf_filtered(), and VEC_iterate.
Referenced by remote_start_remote(), and tfile_open().
| void merge_uploaded_tracepoints | ( | struct uploaded_tp ** | uploaded_tps | ) |
Definition at line 3176 of file tracepoint.c.
References _, uploaded_tp::addr, create_tracepoint_from_upload(), find_matching_tracepoint_location(), free_uploaded_tps(), bp_location::gdbarch, get_current_arch(), bp_location::inserted, breakpoint::loc, loc, uploaded_tp::next, uploaded_tp::number, breakpoint::number, tracepoint::number_on_target, observer_notify_breakpoint_modified(), bp_location::owner, paddress(), printf_filtered(), VEC(), VEC_free, VEC_iterate, and VEC_safe_push.
Referenced by remote_start_remote(), and tfile_open().
| void parse_static_tracepoint_marker_definition | ( | const char * | line, |
| const char ** | pp, | ||
| struct static_tracepoint_marker * | marker | ||
| ) |
Definition at line 3698 of file tracepoint.c.
References _, static_tracepoint_marker::address, error(), static_tracepoint_marker::extra, static_tracepoint_marker::gdbarch, hex2bin(), static_tracepoint_marker::str_id, target_gdbarch(), unpack_varlen_hex(), and xmalloc().
Referenced by remote_static_tracepoint_marker_at(), and VEC().
| void parse_trace_status | ( | const char * | line, |
| struct trace_status * | ts | ||
| ) |
Definition at line 3352 of file tracepoint.c.
References _, trace_status::buffer_free, trace_status::buffer_size, trace_status::circular_buffer, trace_status::disconnected_tracing, error(), hex2bin(), 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, unpack_varlen_hex(), trace_status::user_name, xfree(), and xmalloc().
Referenced by remote_get_trace_status(), and tfile_interp_line().
| traceframe_info_up parse_traceframe_info | ( | const char * | tframe_info | ) |
Definition at line 4023 of file tracepoint.c.
References _, gdb_xml_parse_quick(), and traceframe_info_elements.
Referenced by remote_traceframe_info().
| void parse_tracepoint_definition | ( | const char * | line, |
| struct uploaded_tp ** | utpp | ||
| ) |
Definition at line 3535 of file tracepoint.c.
References _, uploaded_tp::addr, uploaded_tp::at_string, bp_fast_tracepoint, bp_static_tracepoint, bp_tracepoint, uploaded_tp::cond, uploaded_tp::cond_string, uploaded_tp::enabled, get_uploaded_tp(), hex2bin(), uploaded_tp::orig_size, parse_tracepoint_status(), uploaded_tp::pass, startswith(), uploaded_tp::step, type, uploaded_tp::type, unpack_varlen_hex(), VEC_safe_push, warning(), and xmalloc().
Referenced by remote_upload_tracepoints(), and tfile_interp_line().
| void parse_tracepoint_status | ( | const char * | p, |
| struct breakpoint * | bp, | ||
| struct uploaded_tp * | utp | ||
| ) |
Definition at line 3512 of file tracepoint.c.
References bp, uploaded_tp::hit_count, breakpoint::hit_count, uploaded_tp::traceframe_usage, tracepoint::traceframe_usage, and unpack_varlen_hex().
Referenced by parse_tracepoint_definition(), and remote_get_tracepoint_status().
| void parse_tsv_definition | ( | const char * | line, |
| struct uploaded_tsv ** | utsvp | ||
| ) |
Definition at line 3651 of file tracepoint.c.
References uploaded_tsv::builtin, get_uploaded_tsv(), hex2bin(), uploaded_tsv::initial_value, uploaded_tsv::name, and unpack_varlen_hex().
Referenced by remote_upload_trace_state_variables(), and tfile_interp_line().
|
static |
Definition at line 3745 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_int(), ui_out::field_skip(), ui_out::field_string(), find_pc_line(), find_pc_sect_function(), static_tracepoint_marker::gdbarch, gdbarch_addr_bit(), ui_out::is_mi_like_p(), symtab_and_line::line, breakpoint::number, symtab_and_line::pc, ui_out::spaces(), static_tracepoint_marker::str_id, SYMBOL_PRINT_NAME, symtab_and_line::symtab, symtab_to_filename_for_display(), symtab_to_fullname(), ui_out::text(), VEC(), VEC_empty, VEC_free, VEC_iterate, VEC_length, ui_out::wrap_hint(), and wrap_indent.
Referenced by info_static_tracepoint_markers_command().
|
static |
Definition at line 1519 of file tracepoint.c.
References _, breakpoint::loc, bp_location::next, bp_location::shlib_disabled, VEC(), VEC_free, VEC_iterate, and warning().
Referenced by query_if_trace_running().
| void query_if_trace_running | ( | int | from_tty | ) |
Definition at line 2053 of file tracepoint.c.
References _, current_trace_status(), trace_status::disconnected_tracing, error(), process_tracepoint_on_disconnect(), query(), trace_status::running, and target_get_trace_status.
Referenced by detach_command(), disconnect_command(), and quit_command().
| void release_static_tracepoint_marker | ( | struct static_tracepoint_marker * | marker | ) |
Definition at line 3736 of file tracepoint.c.
References static_tracepoint_marker::str_id, and xfree().
Referenced by decode_static_tracepoint_spec(), free_current_marker(), info_static_tracepoint_markers_command(), init_breakpoint_sal(), update_static_tracepoint(), and VEC().
|
static |
Definition at line 618 of file tracepoint.c.
References _, agent_flaw_none, error(), agent_expr::flaw, internal_error(), agent_expr::max_height, and agent_expr::min_height.
Referenced by collection_list::collect_symbol(), encode_actions_1(), and validate_actionline().
|
static |
Definition at line 3033 of file tracepoint.c.
References xfree().
Referenced by make_cleanup_restore_current_traceframe().
| void save_trace_state_variables | ( | struct ui_file * | fp | ) |
Definition at line 503 of file tracepoint.c.
References fprintf_unfiltered(), trace_state_variable::initial_value, trace_state_variable::name, plongest(), and VEC_iterate.
Referenced by save_breakpoints().
|
static |
Definition at line 3910 of file tracepoint.c.
References allocate_value(), current_target, init_vector_type(), size, TARGET_OBJECT_STATIC_TRACE_DATA, target_read_alloc(), type, value_contents_raw(), and xfree().
|
static |
Definition at line 2901 of file tracepoint.c.
References target_set_circular_trace_buffer.
Referenced by _initialize_tracepoint().
| void set_current_traceframe | ( | int | num | ) |
Definition at line 2991 of file tracepoint.c.
References _, clear_traceframe_info(), registers_changed(), set_traceframe_num(), target_trace_find, tfind_number, and warning().
Referenced by do_restore_current_traceframe_cleanup(), fetch_inferior_event(), and tfind_1().
|
static |
Definition at line 2894 of file tracepoint.c.
References target_set_disconnected_tracing.
Referenced by _initialize_tracepoint().
|
static |
Definition at line 2908 of file tracepoint.c.
References target_set_trace_buffer_size.
Referenced by _initialize_tracepoint().
|
static |
Definition at line 2927 of file tracepoint.c.
References _, target_set_trace_notes, and warning().
Referenced by _initialize_tracepoint().
|
static |
Definition at line 2939 of file tracepoint.c.
References _, target_set_trace_notes, and warning().
Referenced by _initialize_tracepoint().
|
static |
Definition at line 2915 of file tracepoint.c.
References _, target_set_trace_notes, and warning().
Referenced by _initialize_tracepoint().
|
static |
Definition at line 223 of file tracepoint.c.
References clear_internalvar(), find_pc_function(), find_pc_line(), get_frame_pc_if_available(), symtab_and_line::line, lookup_internalvar(), set_internalvar_integer(), set_internalvar_string(), SYMBOL_LINKAGE_NAME, symtab_and_line::symtab, and symtab_to_filename_for_display().
Referenced by tfind_1(), and trace_reset_local_state().
|
static |
Definition at line 205 of file tracepoint.c.
References lookup_internalvar(), and set_internalvar_integer().
Referenced by set_current_traceframe(), and trace_reset_local_state().
|
static |
Definition at line 213 of file tracepoint.c.
References lookup_internalvar(), and set_internalvar_integer().
Referenced by tfind_1(), and trace_reset_local_state().
| void start_tracing | ( | const char * | notes | ) |
Definition at line 1572 of file tracepoint.c.
References _, bp_enabled, bp_fast_tracepoint, current_trace_status(), breakpoint::enable_state, error(), gdb_assert, breakpoint::loc, loc, may_insert_fast_tracepoints, may_insert_tracepoints, breakpoint::number, tracepoint::number_on_target, observer_notify_breakpoint_modified(), 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_reset_local_state(), breakpoint::type, VEC(), VEC_free, VEC_iterate, VEC_length, and warning().
Referenced by mi_cmd_trace_start(), and tstart_command().
| void stop_tracing | ( | const char * | note | ) |
Definition at line 1730 of file tracepoint.c.
References _, bp_fast_tracepoint, current_trace_status(), breakpoint::loc, loc, may_insert_fast_tracepoints, may_insert_tracepoints, trace_status::running, target_set_trace_notes, target_trace_stop, breakpoint::type, VEC(), VEC_free, VEC_iterate, and warning().
Referenced by mi_cmd_trace_stop(), and tstop_command().
|
static |
Definition at line 2846 of file tracepoint.c.
References all_tracepoint_actions_and_cleanup(), get_current_frame(), get_traceframe_location(), loc, printf_filtered(), select_frame(), and trace_dump_actions().
Referenced by _initialize_tracepoint().
|
static |
Definition at line 547 of file tracepoint.c.
Referenced by _initialize_tracepoint(), 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 2105 of file tracepoint.c.
References _, current_uiout, do_displays(), error(), ui_out::field_int(), ui_out::field_string(), frame_id_eq(), get_current_frame(), get_frame_id(), get_selected_frame(), get_traceframe_number(), get_tracepoint_by_number_on_target(), has_stack_frames(), info_verbose, ui_out::is_mi_like_p(), null_frame_id, breakpoint::number, observer_notify_traceframe_changed(), print_stack_frame(), printf_filtered(), printf_unfiltered(), 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(), and tfind_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 2298 of file tracepoint.c.
References tfind_command_1().
Referenced by _initialize_tracepoint(), and tfind_1().
|
static |
Definition at line 2263 of file tracepoint.c.
References _, check_trace_running(), current_trace_status(), error(), parse_and_eval_long(), tfind_1(), and tfind_number.
Referenced by tfind_command(), tfind_end_command(), and tfind_start_command().
|
static |
Definition at line 2305 of file tracepoint.c.
References tfind_command_1().
Referenced by _initialize_tracepoint().
|
static |
Definition at line 2371 of file tracepoint.c.
References _, check_trace_running(), current_trace_status(), DECODE_LINE_FUNFIRSTLINE, decode_line_with_current_source(), error(), find_line_pc_range(), find_pc_line(), gdb_stdout, get_current_arch(), get_current_frame(), get_frame_pc(), symtab_and_line::line, print_address(), printf_filtered(), symtab_and_line::symtab, symtab_to_filename_for_display(), tfind_1(), tfind_outside, tfind_range, and wrap_here().
Referenced by _initialize_tracepoint().
|
static |
Definition at line 2461 of file tracepoint.c.
References _, current_trace_status(), error(), parse_and_eval_address(), printf_filtered(), skip_spaces(), string, tfind_1(), and tfind_outside.
Referenced by _initialize_tracepoint().
|
static |
Definition at line 2319 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.
Referenced by _initialize_tracepoint().
|
static |
Definition at line 2429 of file tracepoint.c.
References check_trace_running(), current_trace_status(), parse_and_eval_address(), printf_filtered(), skip_spaces(), string, tfind_1(), and tfind_range.
Referenced by _initialize_tracepoint().
|
static |
Definition at line 2312 of file tracepoint.c.
References tfind_command_1().
Referenced by _initialize_tracepoint().
|
static |
Definition at line 2335 of file tracepoint.c.
References _, check_trace_running(), current_trace_status(), error(), get_tracepoint(), tracepoint::number_on_target, parse_and_eval_long(), tfind_1(), and tfind_tp.
Referenced by _initialize_tracepoint().
|
static |
Definition at line 2667 of file tracepoint.c.
References _, command_line::body_count, command_line::body_list, cmd_cfunc_eq(), cmdlist, collect_pseudocommand(), decode_agent_options(), do_cleanups(), error(), free_current_contents(), info_args_command(), info_locals_command(), command_line::line, lookup_cmd(), make_cleanup(), command_line::next, output_command_const(), printf_filtered(), QUIT, registers_info(), skip_spaces(), while_stepping_pseudocommand(), and xrealloc().
Referenced by tdump_command().
| void trace_reset_local_state | ( | void | ) |
Definition at line 1563 of file tracepoint.c.
References clear_traceframe_info(), set_traceframe_context(), set_traceframe_num(), and set_tracepoint_num().
Referenced by disconnect_tracing(), remote_close(), start_tracing(), and tfile_close().
| void trace_status_mi | ( | int | on_stop | ) |
Definition at line 1939 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_int(), ui_out::field_string(), trace_status::filename, gdb_assert, 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, trace_status::user_name, and xsnprintf().
Referenced by mi_cmd_trace_status(), and mi_cmd_trace_stop().
|
static |
Definition at line 357 of file tracepoint.c.
References _, create_trace_state_variable(), error(), error_no_arg(), find_trace_state_variable(), trace_state_variable::initial_value, trace_state_variable::name, name, observer_notify_tsv_created(), observer_notify_tsv_modified(), parse_and_eval(), plongest(), printf_filtered(), skip_spaces(), string, validate_trace_state_variable_name(), and value_as_long().
Referenced by _initialize_tracepoint().
| int traceframe_available_memory | ( | std::vector< mem_range > * | result, |
| CORE_ADDR | memaddr, | ||
| ULONGEST | len | ||
| ) |
Definition at line 4057 of file tracepoint.c.
References get_traceframe_info(), mem_range::length, mem_ranges_overlap(), traceframe_info::memory, normalize_mem_ranges(), and mem_range::start.
Referenced by mi_cmd_trace_frame_collected(), and remote_read_bytes().
|
static |
Definition at line 3960 of file tracepoint.c.
References traceframe_info::memory, gdb_xml_value::value, and xml_find_attribute().
|
static |
Definition at line 3978 of file tracepoint.c.
References gdb_xml_parse_ulongest(), traceframe_info::tvars, gdb_xml_value::value, and xml_find_attribute().
|
static |
Definition at line 1701 of file tracepoint.c.
References _, current_trace_status(), dont_repeat(), error(), query(), and start_tracing().
Referenced by _initialize_tracepoint().
|
static |
Definition at line 1776 of file tracepoint.c.
References _, trace_status::buffer_free, trace_status::buffer_size, trace_status::circular_buffer, current_trace_status(), trace_status::disconnected_tracing, trace_status::filename, trace_status::notes, printf_filtered(), 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, trace_status::traceframes_created, tracepoint_error, tracepoint_passcount, trace_status::user_name, VEC(), VEC_free, and VEC_iterate.
Referenced by _initialize_tracepoint().
|
static |
Definition at line 1721 of file tracepoint.c.
References _, current_trace_status(), error(), and stop_tracing().
Referenced by _initialize_tracepoint().
| void tvariables_info_1 | ( | void | ) |
Definition at line 438 of file tracepoint.c.
References _, current_trace_status(), current_uiout, ui_out::field_string(), trace_state_variable::initial_value, ui_out::is_mi_like_p(), trace_state_variable::name, name, trace_state_variable::number, plongest(), printf_filtered(), trace_status::running, string, ui_out::table_body(), ui_out::table_header(), target_get_trace_state_variable_value, ui_out::text(), ui_left, trace_state_variable::value, trace_state_variable::value_known, VEC_iterate, and VEC_length.
Referenced by info_tvariables_command(), and mi_cmd_trace_list_variables().
| void validate_actionline | ( | const char * | line, |
| struct breakpoint * | b | ||
| ) |
Definition at line 643 of file tracepoint.c.
References _, bp_location::address, ax_reqs(), block_for_pc(), cmd_cfunc_eq(), cmdlist, collect_pseudocommand(), decode_agent_options(), end_actions_pseudocommand(), error(), gen_eval_for_expr(), gen_trace_for_expr(), breakpoint::loc, loc, LOC_CONST, LOC_OPTIMIZED_OUT, lookup_cmd(), MAX_AGENT_EXPR_LEN, bp_location::next, parse_exp_1(), plongest(), QUIT, report_agent_reqs_errors(), skip_spaces(), tracepoint::step_count, SYMBOL_CLASS, SYMBOL_PRINT_NAME, SYMBOL_VALUE, teval_pseudocommand(), and while_stepping_pseudocommand().
Referenced by all_tracepoint_actions_and_cleanup(), check_tracepoint_command(), and validate_commands_for_breakpoint().
| void validate_trace_state_variable_name | ( | const char * | name | ) |
Definition at line 333 of file tracepoint.c.
References _, error(), and name.
Referenced by mi_cmd_trace_define_variable(), and trace_variable_command().
|
static |
Definition at line 120 of file tracepoint.c.
Referenced by find_matching_tracepoint_location(), info_static_tracepoint_markers_command(), merge_uploaded_tracepoints(), print_one_static_tracepoint_marker(), process_tracepoint_on_disconnect(), start_tracing(), stop_tracing(), and tstatus_command().
|
static |
Definition at line 535 of file tracepoint.c.
Referenced by _initialize_tracepoint(), encode_actions_1(), trace_dump_actions(), and validate_actionline().
| void(* deprecated_trace_find_hook) (char *arg, int from_tty) |
Definition at line 82 of file tracepoint.c.
| void(* deprecated_trace_start_stop_hook) (int start, int from_tty) |
Definition at line 83 of file tracepoint.c.
|
static |
Definition at line 2955 of file tracepoint.c.
Referenced by mem2hex().
|
static |
Definition at line 3993 of file tracepoint.c.
|
static |
Definition at line 4092 of file tracepoint.c.
Referenced by _initialize_tracepoint().
|
static |
Definition at line 4004 of file tracepoint.c.
|
static |
Definition at line 4014 of file tracepoint.c.
Referenced by parse_traceframe_info().
|
static |
Definition at line 3999 of file tracepoint.c.
1.8.14