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 "language.h"
#include "gdb_string.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 "exceptions.h"
#include "cli/cli-utils.h"
#include "probe.h"
#include "ctf.h"
#include "filestuff.h"
#include "readline/readline.h"
#include "readline/history.h"
#include <unistd.h>
Go to the source code of this file.
Classes | |
struct | add_local_symbols_data |
struct | tfile_trace_file_writer |
struct | current_traceframe_cleanup |
Defines | |
#define | O_LARGEFILE 0 |
#define | MAX_AGENT_EXPR_LEN 184 |
#define | MAX_TRACE_UPLOAD 2000 |
#define | TRACE_WRITE_R_BLOCK(writer, buf, size) writer->ops->frame_ops->write_r_block ((writer), (buf), (size)) |
#define | TRACE_WRITE_M_BLOCK_HEADER(writer, addr, size) |
#define | TRACE_WRITE_M_BLOCK_MEMORY(writer, buf, size) |
#define | TRACE_WRITE_V_BLOCK(writer, num, val) writer->ops->frame_ops->write_v_block ((writer), (num), (val)) |
#define | MAX_TRACE_UPLOAD 2000 |
#define | TRACE_HEADER_SIZE 8 |
Typedefs | |
typedef struct trace_state_variable | tsv_s |
typedef int(* | walk_blocks_callback_func )(char blocktype, void *data) |
Enumerations | |
enum | { memrange_absolute = -1 } |
Functions | |
DEF_VEC_O (tsv_s) | |
static | VEC (tsv_s) |
struct trace_status * | current_trace_status (void) |
static void | free_traceframe_info (struct traceframe_info *info) |
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 (char *args, int from_tty) |
static void | delete_trace_variable_command (char *args, int from_tty) |
void | tvariables_info_1 (void) |
static void | tvariables_info (char *args, int from_tty) |
void | save_trace_state_variables (struct ui_file *fp) |
static void | end_actions_pseudocommand (char *args, int from_tty) |
static void | while_stepping_pseudocommand (char *args, int from_tty) |
static void | collect_pseudocommand (char *args, int from_tty) |
static void | teval_pseudocommand (char *args, int from_tty) |
const char * | decode_agent_options (const char *exp, int *trace_string) |
static void | trace_actions_command (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 int | memrange_cmp (const void *, const void *) |
static void | memrange_sortmerge (struct collection_list *memranges) |
static void | add_register (struct collection_list *collection, unsigned int regno) |
static void | add_memrange (struct collection_list *memranges, int type, bfd_signed_vma base, unsigned long len) |
static void | collect_symbol (struct collection_list *collect, struct symbol *sym, struct gdbarch *gdbarch, long frame_regno, long frame_offset, CORE_ADDR scope, int trace_string) |
static void | do_collect_symbol (const char *print_name, struct symbol *sym, void *cb_data) |
static void | add_local_symbols (struct collection_list *collect, struct gdbarch *gdbarch, CORE_ADDR pc, long frame_regno, long frame_offset, int type, int trace_string) |
static void | add_static_trace_data (struct collection_list *collection) |
static void | clear_collection_list (struct collection_list *list) |
static void | do_clear_collection_list (void *list) |
static void | init_collection_list (struct collection_list *clist) |
static char ** | stringify_collection_list (struct collection_list *list) |
static void | append_exp (struct expression *exp, VEC(char_ptr)**list) |
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) |
struct cleanup * | encode_actions_and_make_cleanup (struct bp_location *tloc, struct collection_list *tracepoint_list, struct collection_list *stepping_list) |
void | encode_actions_rsp (struct bp_location *tloc, char ***tdp_actions, char ***stepping_actions) |
static void | add_aexpr (struct collection_list *collect, struct agent_expr *aexpr) |
static void | process_tracepoint_on_disconnect (void) |
void | trace_reset_local_state (void) |
void | start_tracing (char *notes) |
static void | trace_start_command (char *args, int from_tty) |
static void | trace_stop_command (char *args, int from_tty) |
void | stop_tracing (char *note) |
static void | trace_status_command (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) |
static void | trace_find_command (char *args, int from_tty) |
static void | trace_find_end_command (char *args, int from_tty) |
static void | trace_find_start_command (char *args, int from_tty) |
static void | trace_find_pc_command (char *args, int from_tty) |
static void | trace_find_tracepoint_command (char *args, int from_tty) |
static void | trace_find_line_command (char *args, int from_tty) |
static void | trace_find_range_command (char *args, int from_tty) |
static void | trace_find_outside_command (char *args, int from_tty) |
static void | scope_info (char *args, 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 | trace_dump_command (char *args, int from_tty) |
int | encode_source_string (int tpnum, ULONGEST addr, char *srctype, char *src, char *buf, int buf_size) |
static void | trace_file_writer_xfree (void *arg) |
static int | tfile_target_save (struct trace_file_writer *self, const char *filename) |
static void | tfile_dtor (struct trace_file_writer *self) |
static void | tfile_start (struct trace_file_writer *self, const char *filename) |
static void | tfile_write_header (struct trace_file_writer *self) |
static void | tfile_write_regblock_type (struct trace_file_writer *self, int size) |
static void | tfile_write_status (struct trace_file_writer *self, struct trace_status *ts) |
static void | tfile_write_uploaded_tsv (struct trace_file_writer *self, struct uploaded_tsv *utsv) |
static void | tfile_write_uploaded_tp (struct trace_file_writer *self, struct uploaded_tp *utp) |
static void | tfile_write_definition_end (struct trace_file_writer *self) |
static void | tfile_write_raw_data (struct trace_file_writer *self, gdb_byte *buf, LONGEST len) |
static void | tfile_end (struct trace_file_writer *self) |
static void | trace_save (const char *filename, struct trace_file_writer *writer, int target_does_save) |
static struct trace_file_writer * | tfile_trace_file_writer_new (void) |
static void | trace_save_command (char *args, 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) |
static void | set_disconnected_tracing (char *args, int from_tty, struct cmd_list_element *c) |
static void | set_circular_trace_buffer (char *args, int from_tty, struct cmd_list_element *c) |
static void | set_trace_buffer_size (char *args, int from_tty, struct cmd_list_element *c) |
static void | set_trace_user (char *args, int from_tty, struct cmd_list_element *c) |
static void | set_trace_notes (char *args, int from_tty, struct cmd_list_element *c) |
static void | set_trace_stop_notes (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) |
void | set_traceframe_number (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 cleanup * | make_cleanup_restore_traceframe_number (void) |
struct uploaded_tp * | get_uploaded_tp (int num, ULONGEST addr, struct uploaded_tp **utpp) |
static void | free_uploaded_tps (struct uploaded_tp **utpp) |
struct uploaded_tsv * | get_uploaded_tsv (int num, struct uploaded_tsv **utsvp) |
static 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) |
static void | tfile_interp_line (char *line, struct uploaded_tp **utpp, struct uploaded_tsv **utsvp) |
static void | tfile_read (gdb_byte *readbuf, int size) |
static void | tfile_open (char *filename, int from_tty) |
void | parse_trace_status (char *line, struct trace_status *ts) |
void | parse_tracepoint_status (char *p, struct breakpoint *bp, struct uploaded_tp *utp) |
void | parse_tracepoint_definition (char *line, struct uploaded_tp **utpp) |
void | parse_tsv_definition (char *line, struct uploaded_tsv **utsvp) |
static void | tfile_close (void) |
static void | tfile_files_info (struct target_ops *t) |
static int | tfile_get_trace_status (struct trace_status *ts) |
static void | tfile_get_tracepoint_status (struct breakpoint *tp, struct uploaded_tp *utp) |
static CORE_ADDR | tfile_get_traceframe_address (off_t tframe_offset) |
static int | tfile_trace_find (enum trace_find_type type, int num, CORE_ADDR addr1, CORE_ADDR addr2, int *tpp) |
static int | match_blocktype (char blocktype, void *data) |
static int | traceframe_walk_blocks (walk_blocks_callback_func callback, int pos, void *data) |
static int | traceframe_find_block_type (char type_wanted, int pos) |
static void | tfile_fetch_registers (struct target_ops *ops, struct regcache *regcache, int regno) |
static LONGEST | tfile_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, LONGEST len) |
static int | tfile_get_trace_state_variable_value (int tsvnum, LONGEST *val) |
static int | tfile_has_all_memory (struct target_ops *ops) |
static int | tfile_has_memory (struct target_ops *ops) |
static int | tfile_has_stack (struct target_ops *ops) |
static int | tfile_has_registers (struct target_ops *ops) |
static int | build_traceframe_info (char blocktype, void *data) |
static struct traceframe_info * | tfile_traceframe_info (void) |
static void | init_tfile_ops (void) |
void | free_current_marker (void *arg) |
void | parse_static_tracepoint_marker_definition (char *line, 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 (char *arg, int from_tty) |
static struct value * | sdata_make_value (struct gdbarch *gdbarch, struct internalvar *var, void *ignore) |
struct traceframe_info * | parse_traceframe_info (const char *tframe_info) |
struct traceframe_info * | get_traceframe_info (void) |
int | traceframe_available_memory (VEC(mem_range_s)**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 struct trace_file_write_ops | tfile_write_ops |
static const char | hexchars [] = "0123456789abcdef" |
static struct target_ops | tfile_ops |
static char * | trace_filename |
static int | trace_fd = -1 |
static off_t | trace_frames_offset |
static off_t | cur_offset |
static int | cur_data_size |
int | trace_regblock_size |
static struct internalvar_funcs | sdata_funcs |
#define MAX_AGENT_EXPR_LEN 184 |
Definition at line 81 of file tracepoint.c.
Referenced by stringify_collection_list(), and validate_actionline().
#define MAX_TRACE_UPLOAD 2000 |
Definition at line 3284 of file tracepoint.c.
Referenced by tfile_write_uploaded_tp(), and trace_save().
#define MAX_TRACE_UPLOAD 2000 |
Definition at line 3284 of file tracepoint.c.
#define O_LARGEFILE 0 |
Definition at line 70 of file tracepoint.c.
Referenced by tfile_open().
#define TRACE_HEADER_SIZE 8 |
Definition at line 4242 of file tracepoint.c.
Referenced by tfile_open().
#define TRACE_WRITE_M_BLOCK_HEADER | ( | writer, | |
addr, | |||
size | |||
) |
writer->ops->frame_ops->write_m_block_header ((writer), (addr), \ (size))
Definition at line 3404 of file tracepoint.c.
Referenced by trace_save().
#define TRACE_WRITE_M_BLOCK_MEMORY | ( | writer, | |
buf, | |||
size | |||
) |
writer->ops->frame_ops->write_m_block_memory ((writer), (buf), \ (size))
Definition at line 3407 of file tracepoint.c.
Referenced by trace_save().
#define TRACE_WRITE_R_BLOCK | ( | writer, | |
buf, | |||
size | |||
) | writer->ops->frame_ops->write_r_block ((writer), (buf), (size)) |
Definition at line 3402 of file tracepoint.c.
Referenced by trace_save().
#define TRACE_WRITE_V_BLOCK | ( | writer, | |
num, | |||
val | |||
) | writer->ops->frame_ops->write_v_block ((writer), (num), (val)) |
Definition at line 3410 of file tracepoint.c.
Referenced by trace_save().
typedef struct trace_state_variable tsv_s |
Definition at line 120 of file tracepoint.c.
typedef int(* walk_blocks_callback_func)(char blocktype, void *data) |
Definition at line 4929 of file tracepoint.c.
anonymous enum |
Definition at line 862 of file tracepoint.c.
void _initialize_tracepoint | ( | void | ) |
Definition at line 5793 of file tracepoint.c.
References _, _initialize_tracepoint, 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(), add_target_with_completer(), class_alias, class_trace, cmdlist, collect_pseudocommand(), create_internalvar_type_lazy(), default_collect, delete_trace_variable_command(), deletelist, end_actions_pseudocommand(), info_static_tracepoint_markers_command(), init_tfile_ops(), no_class, scope_info(), set_circular_trace_buffer(), set_disconnected_tracing(), set_trace_buffer_size(), set_trace_notes(), set_trace_stop_notes(), set_trace_user(), setlist, showlist, teval_pseudocommand(), tfile_ops, trace_actions_command(), trace_dump_command(), trace_find_command(), trace_find_end_command(), trace_find_line_command(), trace_find_outside_command(), trace_find_pc_command(), trace_find_range_command(), trace_find_start_command(), trace_find_tracepoint_command(), trace_save_command(), trace_start_command(), trace_status_command(), trace_stop_command(), trace_variable_command(), tvariables_info(), and while_stepping_pseudocommand().
static void add_aexpr | ( | struct collection_list * | collect, |
struct agent_expr * | aexpr | ||
) | [static] |
Definition at line 1718 of file tracepoint.c.
References collection_list::aexpr_list, collection_list::aexpr_listsize, collection_list::next_aexpr_elt, and xrealloc().
Referenced by collect_symbol(), and encode_actions_1().
static void add_local_symbols | ( | struct collection_list * | collect, |
struct gdbarch * | gdbarch, | ||
CORE_ADDR | pc, | ||
long | frame_regno, | ||
long | frame_offset, | ||
int | type, | ||
int | trace_string | ||
) | [static] |
Definition at line 1163 of file tracepoint.c.
References _, block_for_pc(), add_local_symbols_data::collect, add_local_symbols_data::count, do_collect_symbol(), add_local_symbols_data::frame_offset, add_local_symbols_data::frame_regno, add_local_symbols_data::gdbarch, get_pc_function_start(), iterate_over_block_arg_vars(), iterate_over_block_local_vars(), add_local_symbols_data::pc, add_local_symbols_data::trace_string, and warning().
Referenced by encode_actions_1().
static void add_memrange | ( | struct collection_list * | memranges, |
int | type, | ||
bfd_signed_vma | base, | ||
unsigned long | len | ||
) | [static] |
Definition at line 941 of file tracepoint.c.
References add_register(), memrange::end, info_verbose, len, collection_list::list, collection_list::listsize, memrange_absolute, collection_list::next_memrange, printf_filtered(), memrange::start, type, memrange::type, and xrealloc().
Referenced by collect_symbol(), and encode_actions_1().
static void add_register | ( | struct collection_list * | collection, |
unsigned int | regno | ||
) | [static] |
Definition at line 929 of file tracepoint.c.
References _, error(), info_verbose, printf_filtered(), and collection_list::regs_mask.
Referenced by add_memrange(), collect_symbol(), and encode_actions_1().
static void add_static_trace_data | ( | struct collection_list * | collection | ) | [static] |
Definition at line 1210 of file tracepoint.c.
References info_verbose, printf_filtered(), and collection_list::strace_data.
Referenced by encode_actions_1().
static struct command_line* all_tracepoint_actions_and_cleanup | ( | struct breakpoint * | t | ) | [static, read] |
Definition at line 3021 of file tracepoint.c.
References breakpoint_commands(), default_collect, command_line::line, make_cleanup(), command_line::next, validate_actionline(), xfree(), xmalloc(), and xstrprintf().
Referenced by encode_actions_and_make_cleanup(), and trace_dump_command().
static void append_exp | ( | struct expression * | exp, |
VEC(char_ptr)** | list | ||
) | [static] |
Definition at line 1391 of file tracepoint.c.
References mem_fileopen(), print_expression(), ui_file_delete(), ui_file_xstrdup(), and VEC_safe_push.
Referenced by encode_actions_1().
static int build_traceframe_info | ( | char | blocktype, |
void * | data | ||
) | [static] |
Definition at line 5252 of file tracepoint.c.
References _, extract_unsigned_integer(), gdbarch_byte_order(), mem_range::length, mem_range::start, target_gdbarch(), tfile_read(), ULONGEST, VEC_safe_push, and warning().
Referenced by tfile_traceframe_info().
static void clear_collection_list | ( | struct collection_list * | list | ) | [static] |
Definition at line 1219 of file tracepoint.c.
References collection_list::aexpr_list, free_agent_expr(), collection_list::list, memset(), collection_list::next_aexpr_elt, collection_list::next_memrange, collection_list::regs_mask, collection_list::strace_data, VEC_free, and xfree().
Referenced by do_clear_collection_list().
static void clear_traceframe_info | ( | void | ) | [static] |
Definition at line 242 of file tracepoint.c.
References free_traceframe_info().
Referenced by set_current_traceframe(), and trace_reset_local_state().
static void collect_pseudocommand | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 606 of file tracepoint.c.
Referenced by _initialize_tracepoint(), encode_actions_1(), trace_dump_actions(), and validate_actionline().
static void collect_symbol | ( | struct collection_list * | collect, |
struct symbol * | sym, | ||
struct gdbarch * | gdbarch, | ||
long | frame_regno, | ||
long | frame_offset, | ||
CORE_ADDR | scope, | ||
int | trace_string | ||
) | [static] |
Definition at line 972 of file tracepoint.c.
References add_aexpr(), add_memrange(), add_register(), ax_reqs(), check_typedef(), discard_cleanups(), gen_trace_for_var(), info_verbose, len, LOC_ARG, LOC_COMPUTED, LOC_CONST, LOC_LOCAL, LOC_OPTIMIZED_OUT, LOC_REF_ARG, LOC_REGISTER, LOC_REGPARM_ADDR, LOC_STATIC, LOC_UNRESOLVED, make_cleanup_free_agent_expr(), memrange_absolute, offset, plongest(), printf_filtered(), QUIT, agent_expr::reg_mask, agent_expr::reg_mask_len, register_size(), report_agent_reqs_errors(), SYMBOL_CLASS, SYMBOL_PRINT_NAME, SYMBOL_REGISTER_OPS, SYMBOL_TYPE, SYMBOL_VALUE, SYMBOL_VALUE_ADDRESS, TYPE_CODE, TYPE_CODE_FLT, TYPE_CODE_STRUCT, and TYPE_LENGTH.
Referenced by do_collect_symbol(), and encode_actions_1().
static int cond_string_is_same | ( | char * | str1, |
char * | str2 | ||
) | [static] |
Definition at line 4008 of file tracepoint.c.
Referenced by find_matching_tracepoint_location().
struct trace_state_variable* create_trace_state_variable | ( | const char * | name | ) | [read] |
Definition at line 312 of file tracepoint.c.
References memset(), trace_state_variable::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 struct trace_state_variable* create_tsv_from_upload | ( | struct uploaded_tsv * | utsv | ) | [static, read] |
Definition at line 4142 of file tracepoint.c.
References trace_state_variable::builtin, uploaded_tsv::builtin, create_trace_state_variable(), do_cleanups(), find_trace_state_variable(), trace_state_variable::initial_value, uploaded_tsv::initial_value, make_cleanup(), uploaded_tsv::name, observer_notify_tsv_created(), xfree(), and xstrprintf().
Referenced by merge_uploaded_trace_state_variables().
struct trace_status* current_trace_status | ( | void | ) | [read] |
Definition at line 219 of file tracepoint.c.
Referenced by disable_breakpoint(), disable_command(), enable_breakpoint_disp(), enable_command(), gdb_trace_status(), mi_cmd_trace_find(), query_if_trace_running(), remote_can_download_tracepoint(), remote_start_remote(), start_tracing(), stop_tracing(), tfile_interp_line(), tfile_open(), trace_find_command(), trace_find_line_command(), trace_find_outside_command(), trace_find_pc_command(), trace_find_range_command(), trace_find_tracepoint_command(), trace_save(), trace_start_command(), trace_status_command(), trace_status_mi(), trace_stop_command(), and tvariables_info_1().
const char* decode_agent_options | ( | const char * | exp, |
int * | trace_string | ||
) |
Definition at line 620 of file tracepoint.c.
References _, error(), get_user_print_options(), value_print_options::print_max, skip_spaces_const(), and target_supports_string_tracing.
Referenced by agent_eval_command_one(), encode_actions_1(), trace_dump_actions(), and validate_actionline().
static void delete_trace_state_variable | ( | const char * | name | ) | [static] |
Definition at line 354 of file tracepoint.c.
References _, trace_state_variable::name, observer_notify_tsv_deleted(), VEC_iterate, VEC_unordered_remove, warning(), and xfree().
Referenced by delete_trace_variable_command().
static void delete_trace_variable_command | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 462 of file tracepoint.c.
References _, delete_trace_state_variable(), do_cleanups(), dont_repeat(), gdb_buildargv(), make_cleanup_freeargv(), observer_notify_tsv_deleted(), query(), VEC_free, and warning().
Referenced by _initialize_tracepoint().
void disconnect_tracing | ( | void | ) |
Definition at line 2308 of file tracepoint.c.
References trace_reset_local_state().
Referenced by detach_command(), disconnect_command(), and quit_force().
static void do_clear_collection_list | ( | void * | list | ) | [static] |
Definition at line 1243 of file tracepoint.c.
References clear_collection_list(), and collection_list::list.
Referenced by encode_actions_and_make_cleanup().
static void do_collect_symbol | ( | const char * | print_name, |
struct symbol * | sym, | ||
void * | cb_data | ||
) | [static] |
Definition at line 1147 of file tracepoint.c.
References add_local_symbols_data::collect, collect_symbol(), add_local_symbols_data::count, add_local_symbols_data::frame_offset, add_local_symbols_data::frame_regno, add_local_symbols_data::gdbarch, p, add_local_symbols_data::pc, add_local_symbols_data::trace_string, and VEC_safe_push.
Referenced by add_local_symbols().
static void do_restore_current_traceframe_cleanup | ( | void * | arg | ) | [static] |
Definition at line 3902 of file tracepoint.c.
References set_current_traceframe(), and current_traceframe_cleanup::traceframe_number.
Referenced by make_cleanup_restore_current_traceframe().
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 | ||
) | [static] |
Definition at line 1405 of file tracepoint.c.
References _, add_aexpr(), add_local_symbols(), add_memrange(), add_register(), add_static_trace_data(), bp_location::address, append_exp(), ax_reqs(), block_for_pc(), command_line::body_list, check_typedef(), cmd_cfunc_eq(), cmdlist, collect_pseudocommand(), collect_symbol(), decode_agent_options(), discard_cleanups(), do_cleanups(), expression::elts, error(), evaluate_expression(), free_current_contents(), gdb_assert, bp_location::gdbarch, 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(), make_cleanup(), make_cleanup_free_agent_expr(), memrange_absolute, name, command_line::next, exp_element::opcode, parse_exp_1(), printf_filtered(), QUIT, agent_expr::reg_mask, agent_expr::reg_mask_len, report_agent_reqs_errors(), skip_spaces_const(), strchr(), exp_element::string, exp_element::symbol, SYMBOL_NATURAL_NAME, teval_pseudocommand(), agent_expr::trace_string, exp_element::type, TYPE_LENGTH, user_reg_map_name_to_regnum(), value_address(), VEC_safe_push, and while_stepping_pseudocommand().
Referenced by encode_actions_and_make_cleanup().
struct cleanup* encode_actions_and_make_cleanup | ( | struct bp_location * | tloc, |
struct collection_list * | tracepoint_list, | ||
struct collection_list * | stepping_list | ||
) | [read] |
Definition at line 1662 of file tracepoint.c.
References bp_location::address, all_tracepoint_actions_and_cleanup(), do_cleanups(), do_clear_collection_list(), encode_actions_1(), bp_location::gdbarch, gdbarch_virtual_frame_pointer(), init_collection_list(), LONGEST, make_cleanup(), memrange_sortmerge(), null_cleanup(), and bp_location::owner.
Referenced by encode_actions_rsp(), and mi_cmd_trace_frame_collected().
void encode_actions_rsp | ( | struct bp_location * | tloc, |
char *** | tdp_actions, | ||
char *** | stepping_actions | ||
) |
Definition at line 1699 of file tracepoint.c.
References do_cleanups(), encode_actions_and_make_cleanup(), and stringify_collection_list().
Referenced by remote_download_tracepoint().
int encode_source_string | ( | int | tpnum, |
ULONGEST | addr, | ||
char * | srctype, | ||
char * | src, | ||
char * | buf, | ||
int | buf_size | ||
) |
Definition at line 3087 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 void end_actions_pseudocommand | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 594 of file tracepoint.c.
Referenced by _initialize_tracepoint(), and validate_actionline().
static struct bp_location* find_matching_tracepoint_location | ( | struct uploaded_tp * | utp | ) | [static, read] |
Definition at line 4022 of file tracepoint.c.
References uploaded_tp::addr, bp_location::address, tracepoint::base, uploaded_tp::cond_string, breakpoint::cond_string, cond_string_is_same(), breakpoint::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 struct trace_state_variable* find_matching_tsv | ( | struct uploaded_tsv * | utsv | ) | [static, read] |
Definition at line 4133 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 | ) | [read] |
Definition at line 325 of file tracepoint.c.
References trace_state_variable::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 | ) | [read] |
Definition at line 341 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 5338 of file tracepoint.c.
References release_static_tracepoint_marker(), and xfree().
Referenced by VEC().
static void free_traceframe_info | ( | struct traceframe_info * | info | ) | [static] |
Definition at line 227 of file tracepoint.c.
References VEC_free, and xfree().
Referenced by clear_traceframe_info().
static void free_uploaded_tps | ( | struct uploaded_tp ** | utpp | ) | [static] |
Definition at line 3959 of file tracepoint.c.
References uploaded_tp::next, and xfree().
Referenced by merge_uploaded_tracepoints(), and trace_save().
static void free_uploaded_tsvs | ( | struct uploaded_tsv ** | utsvp | ) | [static] |
Definition at line 3991 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 | ) | [read] |
Definition at line 5730 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 | ) | [read] |
Definition at line 2979 of file tracepoint.c.
References _, bp_location::address, tracepoint::base, error(), get_current_regcache(), get_tracepoint(), breakpoint::loc, bp_location::next, and regcache_read_pc().
Referenced by mi_cmd_trace_frame_collected(), and trace_dump_command().
int get_traceframe_number | ( | void | ) |
Definition at line 3845 of file tracepoint.c.
Referenced by call_function_by_hand(), ensure_not_tfind_mode(), gdb_get_trace_frame_num(), get_current_frame(), has_stack_frames(), memory_xfer_partial_1(), mi_cmd_trace_find(), set_remote_traceframe(), and tfind_1().
int get_tracepoint_number | ( | void | ) |
Definition at line 3851 of file tracepoint.c.
struct uploaded_tp* get_uploaded_tp | ( | int | num, |
ULONGEST | addr, | ||
struct uploaded_tp ** | utpp | ||
) | [read] |
Definition at line 3939 of file tracepoint.c.
References uploaded_tp::addr, memset(), uploaded_tp::next, uploaded_tp::number, and xmalloc().
Referenced by parse_tracepoint_definition().
struct uploaded_tsv* get_uploaded_tsv | ( | int | num, |
struct uploaded_tsv ** | utsvp | ||
) | [read] |
Definition at line 3975 of file tracepoint.c.
References memset(), uploaded_tsv::next, uploaded_tsv::number, and xmalloc().
Referenced by parse_tsv_definition().
static void info_static_tracepoint_markers_command | ( | char * | arg, |
int | from_tty | ||
) | [static] |
Definition at line 5522 of file tracepoint.c.
References current_uiout, do_cleanups(), gdbarch_addr_bit(), make_cleanup(), make_cleanup_ui_out_table_begin_end(), print_one_static_tracepoint_marker(), release_static_tracepoint_marker(), target_gdbarch(), target_static_tracepoint_markers_by_strid, ui_left, ui_noalign, ui_out_table_body(), ui_out_table_header(), VEC, VEC_cleanup, and VEC_iterate.
Referenced by _initialize_tracepoint().
static void init_collection_list | ( | struct collection_list * | clist | ) | [static] |
Definition at line 1253 of file tracepoint.c.
References collection_list::aexpr_list, collection_list::aexpr_listsize, collection_list::list, collection_list::listsize, memset(), and xcalloc().
Referenced by encode_actions_and_make_cleanup().
static void init_tfile_ops | ( | void | ) | [static] |
Definition at line 5312 of file tracepoint.c.
References OPS_MAGIC, process_stratum, tfile_close(), tfile_fetch_registers(), tfile_files_info(), tfile_get_trace_state_variable_value(), tfile_get_trace_status(), tfile_get_tracepoint_status(), tfile_has_all_memory(), tfile_has_memory(), tfile_has_registers(), tfile_has_stack(), tfile_open(), tfile_ops, tfile_trace_find(), tfile_traceframe_info(), tfile_xfer_partial(), target_ops::to_close, target_ops::to_doc, target_ops::to_fetch_registers, target_ops::to_files_info, target_ops::to_get_trace_state_variable_value, target_ops::to_get_trace_status, target_ops::to_get_tracepoint_status, target_ops::to_has_all_memory, target_ops::to_has_memory, target_ops::to_has_registers, target_ops::to_has_stack, target_ops::to_longname, target_ops::to_magic, target_ops::to_open, target_ops::to_shortname, target_ops::to_stratum, target_ops::to_trace_find, target_ops::to_traceframe_info, and target_ops::to_xfer_partial.
Referenced by _initialize_tracepoint().
struct cleanup* make_cleanup_restore_current_traceframe | ( | void | ) | [read] |
Definition at line 3918 of file tracepoint.c.
References do_restore_current_traceframe_cleanup(), make_cleanup_dtor(), restore_current_traceframe_cleanup_dtor(), current_traceframe_cleanup::traceframe_number, and xmalloc().
Referenced by fetch_inferior_event().
struct cleanup* make_cleanup_restore_traceframe_number | ( | void | ) | [read] |
Definition at line 3930 of file tracepoint.c.
References make_cleanup_restore_integer().
Referenced by target_read_live_memory().
static int match_blocktype | ( | char | blocktype, |
void * | data | ||
) | [static] |
Definition at line 4935 of file tracepoint.c.
Referenced by traceframe_find_block_type().
Definition at line 3827 of file tracepoint.c.
Referenced by stringify_collection_list().
static int memrange_cmp | ( | const void * | va, |
const void * | vb | ||
) | [static] |
Definition at line 872 of file tracepoint.c.
References memrange_absolute, memrange::start, and memrange::type.
Referenced by memrange_sortmerge().
static void memrange_sortmerge | ( | struct collection_list * | memranges | ) | [static] |
Definition at line 899 of file tracepoint.c.
References memrange::end, collection_list::list, memcpy(), memrange_cmp(), collection_list::next_memrange, qsort, memrange::start, and memrange::type.
Referenced by encode_actions_and_make_cleanup().
void merge_uploaded_trace_state_variables | ( | struct uploaded_tsv ** | uploaded_tsvs | ) |
Definition at line 4187 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 4056 of file tracepoint.c.
References _, uploaded_tp::addr, tracepoint::base, create_tracepoint_from_upload(), find_matching_tracepoint_location(), free_uploaded_tps(), bp_location::gdbarch, get_current_arch(), bp_location::inserted, 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 | ( | char * | line, |
char ** | pp, | ||
struct static_tracepoint_marker * | marker | ||
) |
Definition at line 5357 of file tracepoint.c.
References _, static_tracepoint_marker::address, error(), static_tracepoint_marker::extra, static_tracepoint_marker::gdbarch, hex2bin(), line, p, static_tracepoint_marker::str_id, strchr(), target_gdbarch(), ULONGEST, unpack_varlen_hex(), and xmalloc().
Referenced by remote_static_tracepoint_marker_at(), and VEC().
void parse_trace_status | ( | char * | line, |
struct trace_status * | ts | ||
) |
Definition at line 4429 of file tracepoint.c.
References _, trace_status::buffer_free, trace_status::buffer_size, trace_status::circular_buffer, trace_status::disconnected_tracing, error(), hex2bin(), line, trace_status::notes, p, trace_status::running, trace_status::running_known, trace_status::start_time, trace_status::stop_desc, trace_status::stop_reason, trace_status::stop_time, trace_status::stopping_tracepoint, strchr(), trace_buffer_full, trace_disconnected, trace_never_run, trace_stop_reason_unknown, trace_status::traceframe_count, trace_status::traceframes_created, tracepoint_error, tracepoint_passcount, tstop_command, ULONGEST, unpack_varlen_hex(), trace_status::user_name, xfree(), and xmalloc().
Referenced by remote_get_trace_status(), and tfile_interp_line().
struct traceframe_info* parse_traceframe_info | ( | const char * | tframe_info | ) | [read] |
Definition at line 5608 of file tracepoint.c.
Referenced by remote_traceframe_info().
void parse_tracepoint_definition | ( | char * | line, |
struct uploaded_tp ** | utpp | ||
) |
Definition at line 4612 of file tracepoint.c.
References _, 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(), line, p, parse_tracepoint_status(), uploaded_tp::pass, uploaded_tp::step, strchr(), type, uploaded_tp::type, ULONGEST, unpack_varlen_hex(), VEC_safe_push, warning(), and xmalloc().
Referenced by remote_upload_tracepoints(), and tfile_interp_line().
void parse_tracepoint_status | ( | char * | p, |
struct breakpoint * | bp, | ||
struct uploaded_tp * | utp | ||
) |
Definition at line 4589 of file tracepoint.c.
References tracepoint::base, uploaded_tp::hit_count, breakpoint::hit_count, uploaded_tp::traceframe_usage, tracepoint::traceframe_usage, ULONGEST, and unpack_varlen_hex().
Referenced by parse_tracepoint_definition(), and remote_get_tracepoint_status().
void parse_tsv_definition | ( | char * | line, |
struct uploaded_tsv ** | utsvp | ||
) |
Definition at line 4727 of file tracepoint.c.
References uploaded_tsv::builtin, get_uploaded_tsv(), hex2bin(), uploaded_tsv::initial_value, line, uploaded_tsv::name, p, ULONGEST, and unpack_varlen_hex().
Referenced by remote_upload_trace_state_variables(), and tfile_interp_line().
static void print_one_static_tracepoint_marker | ( | int | count, |
struct static_tracepoint_marker * | marker | ||
) | [static] |
Definition at line 5404 of file tracepoint.c.
References _, static_tracepoint_marker::address, cleanup_chain, current_uiout, do_cleanups(), static_tracepoint_marker::extra, find_pc_line(), find_pc_sect_function(), static_tracepoint_marker::gdbarch, gdbarch_addr_bit(), init_sal(), symtab_and_line::line, make_cleanup_ui_out_tuple_begin_end(), breakpoint::number, symtab_and_line::pc, static_tracepoint_marker::str_id, SYMBOL_PRINT_NAME, symtab_and_line::symtab, symtab_to_filename_for_display(), symtab_to_fullname(), ui_out_field_core_addr(), ui_out_field_fmt(), ui_out_field_int(), ui_out_field_skip(), ui_out_field_string(), ui_out_is_mi_like_p(), ui_out_spaces(), ui_out_text(), ui_out_wrap_hint(), VEC, VEC_empty, VEC_free, VEC_iterate, VEC_length, and wrap_indent.
Referenced by info_static_tracepoint_markers_command().
static void process_tracepoint_on_disconnect | ( | void | ) | [static] |
Definition at line 1732 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 2267 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 5395 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 void report_agent_reqs_errors | ( | struct agent_expr * | aexpr | ) | [static] |
Definition at line 686 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 collect_symbol(), encode_actions_1(), and validate_actionline().
static void restore_current_traceframe_cleanup_dtor | ( | void * | arg | ) | [static] |
Definition at line 3910 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 568 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 void scope_info | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 2710 of file tracepoint.c.
References _, ALL_BLOCK_SYMBOLS, block_for_pc(), BLOCK_FUNCTION, BLOCK_START, BLOCK_SUPERBLOCK, check_typedef(), decode_line_1(), DECODE_LINE_FUNFIRSTLINE, error(), fprintf_filtered(), gdb_assert_not_reached, gdb_stdout, gdbarch_register_name(), get_objfile_arch(), 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(), symtabs_and_lines::nelts, paddress(), symtab_and_line::pc, plongest(), printf_filtered(), QUIT, resolve_sal_pc(), symtabs_and_lines::sals, SYMBOL_BLOCK_VALUE, SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_IS_ARGUMENT, SYMBOL_LINKAGE_NAME, SYMBOL_PRINT_NAME, SYMBOL_REGISTER_OPS, SYMBOL_SYMTAB, SYMBOL_TYPE, SYMBOL_VALUE, SYMBOL_VALUE_ADDRESS, SYMBOL_VALUE_BYTES, and TYPE_LENGTH.
Referenced by _initialize_tracepoint().
static struct value* sdata_make_value | ( | struct gdbarch * | gdbarch, |
struct internalvar * | var, | ||
void * | ignore | ||
) | [static, read] |
Definition at line 5579 of file tracepoint.c.
References allocate_value(), current_target, init_vector_type(), LONGEST, memcpy(), size, TARGET_OBJECT_STATIC_TRACE_DATA, target_read_alloc(), type, value_contents_raw(), and xfree().
static void set_circular_trace_buffer | ( | char * | args, |
int | from_tty, | ||
struct cmd_list_element * | c | ||
) | [static] |
Definition at line 3770 of file tracepoint.c.
References target_set_circular_trace_buffer.
Referenced by _initialize_tracepoint().
void set_current_traceframe | ( | int | num | ) |
Definition at line 3860 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 void set_disconnected_tracing | ( | char * | args, |
int | from_tty, | ||
struct cmd_list_element * | c | ||
) | [static] |
Definition at line 3763 of file tracepoint.c.
References target_set_disconnected_tracing.
Referenced by _initialize_tracepoint().
static void set_trace_buffer_size | ( | char * | args, |
int | from_tty, | ||
struct cmd_list_element * | c | ||
) | [static] |
Definition at line 3777 of file tracepoint.c.
References target_set_trace_buffer_size.
Referenced by _initialize_tracepoint().
static void set_trace_notes | ( | char * | args, |
int | from_tty, | ||
struct cmd_list_element * | c | ||
) | [static] |
Definition at line 3796 of file tracepoint.c.
References _, target_set_trace_notes, and warning().
Referenced by _initialize_tracepoint().
static void set_trace_stop_notes | ( | char * | args, |
int | from_tty, | ||
struct cmd_list_element * | c | ||
) | [static] |
Definition at line 3808 of file tracepoint.c.
References _, target_set_trace_notes, and warning().
Referenced by _initialize_tracepoint().
static void set_trace_user | ( | char * | args, |
int | from_tty, | ||
struct cmd_list_element * | c | ||
) | [static] |
Definition at line 3784 of file tracepoint.c.
References _, target_set_trace_notes, and warning().
Referenced by _initialize_tracepoint().
static void set_traceframe_context | ( | struct frame_info * | trace_frame | ) | [static] |
Definition at line 268 of file tracepoint.c.
References clear_internalvar(), find_pc_function(), find_pc_line(), get_frame_pc_if_available(), init_sal(), lookup_internalvar(), set_internalvar_integer(), set_internalvar_string(), SYMBOL_LINKAGE_NAME, and symtab_to_filename_for_display().
Referenced by tfind_1(), and trace_reset_local_state().
static void set_traceframe_num | ( | int | num | ) | [static] |
Definition at line 250 of file tracepoint.c.
References lookup_internalvar(), and set_internalvar_integer().
Referenced by set_current_traceframe(), and trace_reset_local_state().
void set_traceframe_number | ( | int | num | ) |
Definition at line 3888 of file tracepoint.c.
Referenced by target_read_live_memory().
static void set_tracepoint_num | ( | int | num | ) | [static] |
Definition at line 258 of file tracepoint.c.
References lookup_internalvar(), and set_internalvar_integer().
Referenced by tfind_1(), and trace_reset_local_state().
void start_tracing | ( | char * | notes | ) |
Definition at line 1785 of file tracepoint.c.
References _, bp_enabled, bp_fast_tracepoint, current_trace_status(), breakpoint::enable_state, error(), gdb_assert, bp_location::gdbarch, bp_location::inserted, breakpoint::loc, may_insert_fast_tracepoints, may_insert_tracepoints, bp_location::next, breakpoint::number, tracepoint::number_on_target, observer_notify_breakpoint_modified(), probe::pops, bp_location::probe, trace_status::running, probe_ops::set_semaphore, 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 trace_start_command().
void stop_tracing | ( | char * | note | ) |
Definition at line 1945 of file tracepoint.c.
References _, bp_fast_tracepoint, probe_ops::clear_semaphore, current_trace_status(), bp_location::gdbarch, breakpoint::loc, may_insert_fast_tracepoints, may_insert_tracepoints, bp_location::next, probe::pops, bp_location::probe, 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 trace_stop_command().
static char** stringify_collection_list | ( | struct collection_list * | list | ) | [static] |
Definition at line 1268 of file tracepoint.c.
References collection_list::aexpr_list, agent_expr::buf, memrange::end, info_verbose, agent_expr::len, collection_list::list, MAX_AGENT_EXPR_LEN, mem2hex(), memrange_absolute, collection_list::next_aexpr_elt, collection_list::next_memrange, printf_filtered(), QUIT, collection_list::regs_mask, savestring(), memrange::start, collection_list::strace_data, memrange::type, xfree(), and xmalloc().
Referenced by encode_actions_rsp().
static void teval_pseudocommand | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 612 of file tracepoint.c.
Referenced by _initialize_tracepoint(), encode_actions_1(), and validate_actionline().
static void tfile_close | ( | void | ) | [static] |
Definition at line 4755 of file tracepoint.c.
References trace_reset_local_state(), and xfree().
Referenced by init_tfile_ops().
static void tfile_dtor | ( | struct trace_file_writer * | self | ) | [static] |
Definition at line 3141 of file tracepoint.c.
References tfile_trace_file_writer::fp, tfile_trace_file_writer::pathname, and xfree().
static void tfile_end | ( | struct trace_file_writer * | self | ) | [static] |
Definition at line 3371 of file tracepoint.c.
References tfile_trace_file_writer::fp, tfile_trace_file_writer::pathname, and perror_with_name().
static void tfile_fetch_registers | ( | struct target_ops * | ops, |
struct regcache * | regcache, | ||
int | regno | ||
) | [static] |
Definition at line 5016 of file tracepoint.c.
References _, bp_location::address, tracepoint::base, gdbarch_byte_order(), gdbarch_num_regs(), gdbarch_pc_regnum(), get_regcache_arch(), get_tracepoint(), breakpoint::loc, bp_location::next, breakpoint::number, offset, REG_UNKNOWN, regcache_raw_supply(), regcache_register_status(), register_size(), tracepoint::step_count, store_unsigned_integer(), tfile_read(), traceframe_find_block_type(), and warning().
Referenced by init_tfile_ops().
static void tfile_files_info | ( | struct target_ops * | t | ) | [static] |
Definition at line 4771 of file tracepoint.c.
References printf_filtered().
Referenced by init_tfile_ops().
static int tfile_get_trace_state_variable_value | ( | int | tsvnum, |
LONGEST * | val | ||
) | [static] |
Definition at line 5192 of file tracepoint.c.
References extract_signed_integer(), gdbarch_byte_order(), int, target_gdbarch(), tfile_read(), and traceframe_find_block_type().
Referenced by init_tfile_ops().
static int tfile_get_trace_status | ( | struct trace_status * | ts | ) | [static] |
Definition at line 4779 of file tracepoint.c.
Referenced by init_tfile_ops().
static CORE_ADDR tfile_get_traceframe_address | ( | off_t | tframe_offset | ) | [static] |
Definition at line 4800 of file tracepoint.c.
References bp_location::address, tracepoint::base, cur_offset, extract_signed_integer(), gdbarch_byte_order(), get_tracepoint_by_number_on_target(), breakpoint::loc, target_gdbarch(), and tfile_read().
Referenced by tfile_trace_find().
static void tfile_get_tracepoint_status | ( | struct breakpoint * | tp, |
struct uploaded_tp * | utp | ||
) | [static] |
Definition at line 4788 of file tracepoint.c.
Referenced by init_tfile_ops().
static int tfile_has_all_memory | ( | struct target_ops * | ops | ) | [static] |
Definition at line 5225 of file tracepoint.c.
Referenced by init_tfile_ops().
static int tfile_has_memory | ( | struct target_ops * | ops | ) | [static] |
Definition at line 5231 of file tracepoint.c.
Referenced by init_tfile_ops().
static int tfile_has_registers | ( | struct target_ops * | ops | ) | [static] |
Definition at line 5243 of file tracepoint.c.
Referenced by init_tfile_ops().
static int tfile_has_stack | ( | struct target_ops * | ops | ) | [static] |
Definition at line 5237 of file tracepoint.c.
Referenced by init_tfile_ops().
static void tfile_interp_line | ( | char * | line, |
struct uploaded_tp ** | utpp, | ||
struct uploaded_tsv ** | utsvp | ||
) | [static] |
Definition at line 4396 of file tracepoint.c.
References _, current_trace_status(), line, p, parse_trace_status(), parse_tracepoint_definition(), parse_tsv_definition(), and warning().
Referenced by tfile_open().
static void tfile_open | ( | char * | filename, |
int | from_tty | ||
) | [static] |
Definition at line 4274 of file tracepoint.c.
References _, trace_status::buffer_free, trace_status::circular_buffer, current_directory, current_trace_status(), discard_cleanups(), trace_status::disconnected_tracing, error(), trace_status::filename, flags, gdb_open_cloexec(), make_cleanup(), merge_uploaded_trace_state_variables(), merge_uploaded_tracepoints(), O_LARGEFILE, perror_with_name(), push_target(), gdb_exception::reason, RETURN_MASK_ALL, trace_status::running_known, trace_status::stop_reason, target_preopen(), tfile_interp_line(), tfile_ops, tfile_read(), throw_exception(), trace_filename, TRACE_HEADER_SIZE, trace_stop_reason_unknown, trace_status::traceframe_count, TRY_CATCH, unpush_target(), warning(), and xfree().
Referenced by init_tfile_ops().
static void tfile_read | ( | gdb_byte * | readbuf, |
int | size | ||
) | [static] |
Definition at line 4262 of file tracepoint.c.
References _, error(), perror_with_name(), and read().
Referenced by build_traceframe_info(), tfile_fetch_registers(), tfile_get_trace_state_variable_value(), tfile_get_traceframe_address(), tfile_open(), tfile_trace_find(), tfile_xfer_partial(), and traceframe_walk_blocks().
static void tfile_start | ( | struct trace_file_writer * | self, |
const char * | filename | ||
) | [static] |
Definition at line 3157 of file tracepoint.c.
References _, error(), tfile_trace_file_writer::fp, gdb_fopen_cloexec(), tfile_trace_file_writer::pathname, and safe_strerror().
static int tfile_target_save | ( | struct trace_file_writer * | self, |
const char * | filename | ||
) | [static] |
Definition at line 3129 of file tracepoint.c.
References target_save_trace_data.
static struct trace_file_writer* tfile_trace_file_writer_new | ( | void | ) | [static, read] |
Definition at line 3671 of file tracepoint.c.
References tfile_trace_file_writer::base, tfile_trace_file_writer::fp, trace_file_writer::ops, tfile_trace_file_writer::pathname, tfile_write_ops, and xmalloc().
Referenced by trace_save_command(), and trace_save_tfile().
static int tfile_trace_find | ( | enum trace_find_type | type, |
int | num, | ||
CORE_ADDR | addr1, | ||
CORE_ADDR | addr2, | ||
int * | tpp | ||
) | [static] |
Definition at line 4833 of file tracepoint.c.
References _, extract_signed_integer(), extract_unsigned_integer(), gdbarch_byte_order(), get_tracepoint(), int, internal_error(), tracepoint::number_on_target, offset, target_gdbarch(), tfile_get_traceframe_address(), tfile_read(), tfind_number, tfind_outside, tfind_pc, tfind_range, tfind_tp, and trace_frames_offset.
Referenced by init_tfile_ops().
static struct traceframe_info* tfile_traceframe_info | ( | void | ) | [static, read] |
Definition at line 5303 of file tracepoint.c.
References build_traceframe_info(), and traceframe_walk_blocks().
Referenced by init_tfile_ops().
static void tfile_write_definition_end | ( | struct trace_file_writer * | self | ) | [static] |
Definition at line 3345 of file tracepoint.c.
References tfile_trace_file_writer::fp.
static void tfile_write_header | ( | struct trace_file_writer * | self | ) | [static] |
Definition at line 3173 of file tracepoint.c.
References tfile_trace_file_writer::fp, tfile_trace_file_writer::pathname, and perror_with_name().
static void tfile_write_raw_data | ( | struct trace_file_writer * | self, |
gdb_byte * | buf, | ||
LONGEST | len | ||
) | [static] |
Definition at line 3357 of file tracepoint.c.
References tfile_trace_file_writer::fp, tfile_trace_file_writer::pathname, and perror_with_name().
static void tfile_write_regblock_type | ( | struct trace_file_writer * | self, |
int | size | ||
) | [static] |
Definition at line 3191 of file tracepoint.c.
References tfile_trace_file_writer::fp.
static void tfile_write_status | ( | struct trace_file_writer * | self, |
struct trace_status * | ts | ||
) | [static] |
Definition at line 3203 of file tracepoint.c.
References bin2hex(), trace_status::buffer_free, trace_status::buffer_size, trace_status::circular_buffer, trace_status::disconnected_tracing, tfile_trace_file_writer::fp, trace_status::notes, phex_nz(), trace_status::running, trace_status::start_time, trace_status::stop_desc, trace_status::stop_reason, trace_status::stop_time, trace_status::stopping_tracepoint, trace_status::traceframe_count, trace_status::traceframes_created, tracepoint_error, tstop_command, and trace_status::user_name.
static void tfile_write_uploaded_tp | ( | struct trace_file_writer * | self, |
struct uploaded_tp * | utp | ||
) | [static] |
Definition at line 3290 of file tracepoint.c.
References uploaded_tp::addr, uploaded_tp::at_string, bp_fast_tracepoint, uploaded_tp::cond, uploaded_tp::cond_string, uploaded_tp::enabled, encode_source_string(), tfile_trace_file_writer::fp, uploaded_tp::hit_count, MAX_TRACE_UPLOAD, uploaded_tp::number, uploaded_tp::orig_size, uploaded_tp::pass, phex_nz(), uploaded_tp::step, uploaded_tp::traceframe_usage, uploaded_tp::type, and VEC_iterate.
static void tfile_write_uploaded_tsv | ( | struct trace_file_writer * | self, |
struct uploaded_tsv * | utsv | ||
) | [static] |
Definition at line 3263 of file tracepoint.c.
References bin2hex(), uploaded_tsv::builtin, tfile_trace_file_writer::fp, uploaded_tsv::initial_value, uploaded_tsv::name, uploaded_tsv::number, phex_nz(), xfree(), and xmalloc().
static LONGEST tfile_xfer_partial | ( | struct target_ops * | ops, |
enum target_object | object, | ||
const char * | annex, | ||
gdb_byte * | readbuf, | ||
const gdb_byte * | writebuf, | ||
ULONGEST | offset, | ||
LONGEST | len | ||
) | [static] |
Definition at line 5100 of file tracepoint.c.
References _, error(), exec_bfd, extract_unsigned_integer(), gdbarch_byte_order(), len, size, target_gdbarch(), TARGET_OBJECT_MEMORY, tfile_read(), traceframe_find_block_type(), and ULONGEST.
Referenced by init_tfile_ops().
Definition at line 2319 of file tracepoint.c.
References _, tracepoint::base, current_uiout, do_displays(), error(), 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, 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_number, trace_find_command(), ui_out_field_int(), ui_out_field_string(), and ui_out_is_mi_like_p().
Referenced by mi_cmd_trace_find(), trace_find_command(), trace_find_line_command(), trace_find_outside_command(), trace_find_pc_command(), trace_find_range_command(), and trace_find_tracepoint_command().
static void trace_actions_command | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 661 of file tracepoint.c.
References tracepoint::base, breakpoint_set_commands(), check_tracepoint_command(), do_cleanups(), get_tracepoint_by_number(), make_cleanup(), breakpoint::number, read_command_lines(), xfree(), and xstrprintf().
Referenced by _initialize_tracepoint().
static void trace_dump_actions | ( | struct command_line * | action, |
int | stepping_actions, | ||
int | stepping_frame, | ||
int | from_tty | ||
) | [static] |
Definition at line 2875 of file tracepoint.c.
References _, args_info(), command_line::body_count, command_line::body_list, cmd_cfunc_eq(), cmdlist, collect_pseudocommand(), decode_agent_options(), do_cleanups(), error(), free_current_contents(), len, command_line::line, locals_info(), lookup_cmd(), make_cleanup(), memcpy(), command_line::next, output_command_const(), printf_filtered(), QUIT, registers_info(), skip_spaces_const(), strchr(), while_stepping_pseudocommand(), and xrealloc().
Referenced by trace_dump_command().
static void trace_dump_command | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 3054 of file tracepoint.c.
References all_tracepoint_actions_and_cleanup(), do_cleanups(), get_current_frame(), get_traceframe_location(), make_cleanup(), make_cleanup_restore_current_thread(), null_cleanup(), bp_location::owner, printf_filtered(), select_frame(), and trace_dump_actions().
Referenced by _initialize_tracepoint().
static void trace_file_writer_xfree | ( | void * | arg | ) | [static] |
Definition at line 3104 of file tracepoint.c.
References trace_file_write_ops::dtor, trace_file_writer::ops, and xfree().
Referenced by trace_save_command(), trace_save_ctf(), and trace_save_tfile().
static void trace_find_command | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 2468 of file tracepoint.c.
References _, current_trace_status(), error(), parse_and_eval_long(), tfind_1(), and tfind_number.
Referenced by _initialize_tracepoint(), tfind_1(), trace_find_end_command(), and trace_find_start_command().
static void trace_find_end_command | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 2506 of file tracepoint.c.
References trace_find_command().
Referenced by _initialize_tracepoint().
static void trace_find_line_command | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 2576 of file tracepoint.c.
References _, current_trace_status(), DECODE_LINE_FUNFIRSTLINE, decode_line_with_current_source(), do_cleanups(), error(), find_line_pc_range(), find_pc_line(), gdb_stdout, get_current_arch(), get_current_frame(), get_frame_pc(), symtab_and_line::line, make_cleanup(), symtabs_and_lines::nelts, print_address(), printf_filtered(), symtabs_and_lines::sals, symtab_and_line::symtab, symtab_to_filename_for_display(), tfind_1(), tfind_outside, tfind_range, wrap_here(), xfree(), and xmalloc().
Referenced by _initialize_tracepoint().
static void trace_find_outside_command | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 2677 of file tracepoint.c.
References _, current_trace_status(), error(), parse_and_eval_address(), printf_filtered(), skip_spaces(), strchr(), tfind_1(), and tfind_outside.
Referenced by _initialize_tracepoint().
static void trace_find_pc_command | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 2520 of file tracepoint.c.
References _, current_trace_status(), error(), get_current_regcache(), parse_and_eval_address(), regcache_read_pc(), tfind_1(), and tfind_pc.
Referenced by _initialize_tracepoint().
static void trace_find_range_command | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 2644 of file tracepoint.c.
References _, current_trace_status(), error(), parse_and_eval_address(), printf_filtered(), skip_spaces(), strchr(), tfind_1(), and tfind_range.
Referenced by _initialize_tracepoint().
static void trace_find_start_command | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 2513 of file tracepoint.c.
References trace_find_command().
Referenced by _initialize_tracepoint().
static void trace_find_tracepoint_command | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 2538 of file tracepoint.c.
References _, current_trace_status(), error(), get_tracepoint(), tracepoint::number_on_target, parse_and_eval_long(), tfind_1(), and tfind_tp.
Referenced by _initialize_tracepoint().
void trace_reset_local_state | ( | void | ) |
Definition at line 1776 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().
static void trace_save | ( | const char * | filename, |
struct trace_file_writer * | writer, | ||
int | target_does_save | ||
) | [static] |
Definition at line 3419 of file tracepoint.c.
References _, current_trace_status(), trace_frame_write_ops::end, trace_file_write_ops::end, error(), extract_signed_integer(), extract_unsigned_integer(), trace_file_write_ops::frame_ops, free_uploaded_tps(), free_uploaded_tsvs(), gdbarch_byte_order(), int, LONGEST, MAX_TRACE_UPLOAD, uploaded_tp::next, uploaded_tsv::next, offset, trace_file_writer::ops, trace_frame_write_ops::start, trace_file_write_ops::start, exsummary::status, target_gdbarch(), target_get_raw_trace_data, target_get_trace_status, target_get_tracepoint_status, trace_file_write_ops::target_save, target_upload_trace_state_variables, target_upload_tracepoints, trace_regblock_size, TRACE_WRITE_M_BLOCK_HEADER, TRACE_WRITE_M_BLOCK_MEMORY, TRACE_WRITE_R_BLOCK, TRACE_WRITE_V_BLOCK, ULONGEST, trace_file_write_ops::write_definition_end, trace_file_write_ops::write_header, trace_file_write_ops::write_regblock_type, trace_file_write_ops::write_status, trace_file_write_ops::write_trace_buffer, trace_file_write_ops::write_uploaded_tp, and trace_file_write_ops::write_uploaded_tsv.
Referenced by trace_save_command(), trace_save_ctf(), and trace_save_tfile().
static void trace_save_command | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 3684 of file tracepoint.c.
References _, ctf_trace_file_writer_new(), do_cleanups(), error(), error_no_arg(), gdb_buildargv(), make_cleanup(), make_cleanup_freeargv(), printf_filtered(), tfile_trace_file_writer_new(), trace_file_writer_xfree(), and trace_save().
Referenced by _initialize_tracepoint().
void trace_save_ctf | ( | const char * | dirname, |
int | target_does_save | ||
) |
Definition at line 3747 of file tracepoint.c.
References ctf_trace_file_writer_new(), do_cleanups(), make_cleanup(), trace_file_writer_xfree(), and trace_save().
Referenced by mi_cmd_trace_save().
void trace_save_tfile | ( | const char * | filename, |
int | target_does_save | ||
) |
Definition at line 3733 of file tracepoint.c.
References do_cleanups(), make_cleanup(), tfile_trace_file_writer_new(), trace_file_writer_xfree(), and trace_save().
Referenced by mi_cmd_trace_save().
static void trace_start_command | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 1916 of file tracepoint.c.
References _, current_trace_status(), dont_repeat(), error(), query(), and start_tracing().
Referenced by _initialize_tracepoint().
static void trace_status_command | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 1990 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, LONGEST, trace_status::notes, printf_filtered(), trace_status::running, trace_status::running_known, trace_status::start_time, exsummary::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_reason_unknown, trace_status::traceframe_count, trace_status::traceframes_created, tracepoint_error, tracepoint_passcount, tstop_command, trace_status::user_name, VEC, VEC_free, and VEC_iterate.
Referenced by _initialize_tracepoint().
void trace_status_mi | ( | int | on_stop | ) |
Definition at line 2153 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, trace_status::filename, gdb_assert, trace_status::notes, trace_status::running, trace_status::running_known, trace_status::start_time, exsummary::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_reason_unknown, trace_status::traceframe_count, trace_status::traceframes_created, tracepoint_error, tracepoint_passcount, tstop_command, ui_out_field_int(), ui_out_field_string(), trace_status::user_name, and xsnprintf().
Referenced by mi_cmd_trace_status(), and mi_cmd_trace_stop().
static void trace_stop_command | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 1936 of file tracepoint.c.
References _, current_trace_status(), error(), and stop_tracing().
Referenced by _initialize_tracepoint().
static void trace_variable_command | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 401 of file tracepoint.c.
References _, create_trace_state_variable(), do_cleanups(), error(), error_no_arg(), find_trace_state_variable(), trace_state_variable::initial_value, LONGEST, make_cleanup(), trace_state_variable::name, name, observer_notify_tsv_created(), observer_notify_tsv_modified(), p, parse_and_eval(), plongest(), printf_filtered(), savestring(), skip_spaces(), validate_trace_state_variable_name(), value_as_long(), and xfree().
Referenced by _initialize_tracepoint().
int traceframe_available_memory | ( | VEC(mem_range_s)** | result, |
CORE_ADDR | memaddr, | ||
ULONGEST | len | ||
) |
Definition at line 5745 of file tracepoint.c.
References get_traceframe_info(), len, mem_range::length, max, mem_ranges_overlap(), memaddr, min, normalize_mem_ranges(), mem_range::start, ULONGEST, VEC_iterate, and VEC_safe_push.
Referenced by memory_xfer_partial_1(), mi_cmd_trace_frame_collected(), and read_value_memory().
static int traceframe_find_block_type | ( | char | type_wanted, |
int | pos | ||
) | [static] |
Definition at line 5007 of file tracepoint.c.
References match_blocktype(), and traceframe_walk_blocks().
Referenced by tfile_fetch_registers(), tfile_get_trace_state_variable_value(), and tfile_xfer_partial().
static int traceframe_walk_blocks | ( | walk_blocks_callback_func | callback, |
int | pos, | ||
void * | data | ||
) | [static] |
Definition at line 4953 of file tracepoint.c.
References _, error(), extract_unsigned_integer(), gdbarch_byte_order(), target_gdbarch(), tfile_read(), and trace_regblock_size.
Referenced by tfile_traceframe_info(), and traceframe_find_block_type().
static void tvariables_info | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 560 of file tracepoint.c.
References tvariables_info_1().
Referenced by _initialize_tracepoint().
void tvariables_info_1 | ( | void | ) |
Definition at line 494 of file tracepoint.c.
References _, current_trace_status(), current_uiout, do_cleanups(), trace_state_variable::initial_value, make_cleanup(), make_cleanup_ui_out_table_begin_end(), make_cleanup_ui_out_tuple_begin_end(), trace_state_variable::name, name, trace_state_variable::number, plongest(), printf_filtered(), target_get_trace_state_variable_value, ui_left, ui_out_field_string(), ui_out_is_mi_like_p(), ui_out_table_body(), ui_out_table_header(), ui_out_text(), trace_state_variable::value, trace_state_variable::value_known, VEC_iterate, VEC_length, and xfree().
Referenced by mi_cmd_trace_list_variables(), and tvariables_info().
void validate_actionline | ( | const char * | line, |
struct breakpoint * | b | ||
) |
Definition at line 711 of file tracepoint.c.
References _, bp_location::address, ax_reqs(), tracepoint::base, block_for_pc(), cmd_cfunc_eq(), cmdlist, collect_pseudocommand(), decode_agent_options(), do_cleanups(), expression::elts, end_actions_pseudocommand(), error(), free_current_contents(), gen_eval_for_expr(), gen_trace_for_expr(), agent_expr::len, breakpoint::loc, LOC_CONST, LOC_OPTIMIZED_OUT, lookup_cmd(), make_cleanup(), make_cleanup_free_agent_expr(), MAX_AGENT_EXPR_LEN, bp_location::next, exp_element::opcode, p, parse_exp_1(), plongest(), QUIT, report_agent_reqs_errors(), skip_spaces_const(), tracepoint::step_count, strchr(), exp_element::symbol, 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 377 of file tracepoint.c.
Referenced by mi_cmd_trace_define_variable(), and trace_variable_command().
Definition at line 123 of file tracepoint.c.
References _initialize_tracepoint, and default_collect.
static void while_stepping_pseudocommand | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 600 of file tracepoint.c.
Referenced by _initialize_tracepoint(), encode_actions_1(), trace_dump_actions(), and validate_actionline().
int cur_data_size [static] |
Definition at line 4248 of file tracepoint.c.
off_t cur_offset [static] |
Definition at line 4247 of file tracepoint.c.
Referenced by tfile_get_traceframe_address().
void(* deprecated_trace_find_hook)(char *arg, int from_tty) |
Definition at line 85 of file tracepoint.c.
Referenced by gdbtk_add_hooks().
void(* deprecated_trace_start_stop_hook)(int start, int from_tty) |
Definition at line 86 of file tracepoint.c.
Referenced by gdbtk_add_hooks().
Definition at line 3824 of file tracepoint.c.
struct internalvar_funcs sdata_funcs [static] |
{ sdata_make_value, NULL, NULL }
Definition at line 5784 of file tracepoint.c.
struct target_ops tfile_ops [static] |
Definition at line 4238 of file tracepoint.c.
Referenced by _initialize_tracepoint(), init_tfile_ops(), and tfile_open().
struct trace_file_write_ops tfile_write_ops [static] |
{ tfile_dtor, tfile_target_save, tfile_start, tfile_write_header, tfile_write_regblock_type, tfile_write_status, tfile_write_uploaded_tsv, tfile_write_uploaded_tp, tfile_write_definition_end, tfile_write_raw_data, NULL, tfile_end, }
Definition at line 3384 of file tracepoint.c.
Referenced by tfile_trace_file_writer_new().
Definition at line 4245 of file tracepoint.c.
char* trace_filename [static] |
Definition at line 4244 of file tracepoint.c.
Referenced by tfile_open().
off_t trace_frames_offset [static] |
Definition at line 4246 of file tracepoint.c.
Referenced by tfile_trace_find().
Definition at line 4249 of file tracepoint.c.
Referenced by remote_get_trace_status(), trace_save(), and traceframe_walk_blocks().