GDB (xrefs)
Classes | Defines | Typedefs | Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/tracepoint.c File Reference
#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_statuscurrent_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_variablecreate_trace_state_variable (const char *name)
struct trace_state_variablefind_trace_state_variable (const char *name)
struct trace_state_variablefind_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 cleanupencode_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_locationget_traceframe_location (int *stepping_frame_p)
static struct command_lineall_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_writertfile_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 cleanupmake_cleanup_restore_current_traceframe (void)
struct cleanupmake_cleanup_restore_traceframe_number (void)
struct uploaded_tpget_uploaded_tp (int num, ULONGEST addr, struct uploaded_tp **utpp)
static void free_uploaded_tps (struct uploaded_tp **utpp)
struct uploaded_tsvget_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_locationfind_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_infotfile_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 valuesdata_make_value (struct gdbarch *gdbarch, struct internalvar *var, void *ignore)
struct traceframe_infoparse_traceframe_info (const char *tframe_info)
struct traceframe_infoget_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 Documentation

#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 
)
Value:
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 
)
Value:
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 Documentation

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.


Enumeration Type Documentation

anonymous enum
Enumerator:
memrange_absolute 

Definition at line 862 of file tracepoint.c.


Function Documentation

void _initialize_tracepoint ( void  )
static void add_aexpr ( struct collection_list collect,
struct agent_expr aexpr 
) [static]
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]
static void add_memrange ( struct collection_list memranges,
int  type,
bfd_signed_vma  base,
unsigned long  len 
) [static]
static void add_register ( struct collection_list collection,
unsigned int  regno 
) [static]
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]
static void append_exp ( struct expression exp,
VEC(char_ptr)**  list 
) [static]
static int build_traceframe_info ( char  blocktype,
void *  data 
) [static]
static void clear_collection_list ( struct collection_list list) [static]
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.

References _, and error().

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]
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]
static struct trace_state_variable* create_tsv_from_upload ( struct uploaded_tsv utsv) [static, read]
struct trace_status* current_trace_status ( void  ) [read]
const char* decode_agent_options ( const char *  exp,
int trace_string 
)
static void delete_trace_state_variable ( const char *  name) [static]
static void delete_trace_variable_command ( char *  args,
int  from_tty 
) [static]
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]
static void do_restore_current_traceframe_cleanup ( void *  arg) [static]
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]
struct cleanup* encode_actions_and_make_cleanup ( struct bp_location tloc,
struct collection_list tracepoint_list,
struct collection_list stepping_list 
) [read]
void encode_actions_rsp ( struct bp_location tloc,
char ***  tdp_actions,
char ***  stepping_actions 
)
int encode_source_string ( int  tpnum,
ULONGEST  addr,
char *  srctype,
char *  src,
char *  buf,
int  buf_size 
)
static void end_actions_pseudocommand ( char *  args,
int  from_tty 
) [static]

Definition at line 594 of file tracepoint.c.

References _, and error().

Referenced by _initialize_tracepoint(), and validate_actionline().

static struct bp_location* find_matching_tracepoint_location ( struct uploaded_tp utp) [static, read]
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 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 3851 of file tracepoint.c.

struct uploaded_tp* get_uploaded_tp ( int  num,
ULONGEST  addr,
struct uploaded_tp **  utpp 
) [read]
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]
static void init_collection_list ( struct collection_list clist) [static]
static void init_tfile_ops ( void  ) [static]

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().

static char* mem2hex ( gdb_byte mem,
char *  buf,
int  count 
) [static]

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]
void merge_uploaded_trace_state_variables ( struct uploaded_tsv **  uploaded_tsvs)
void merge_uploaded_tracepoints ( struct uploaded_tp **  uploaded_tps)
void parse_static_tracepoint_marker_definition ( char *  line,
char **  pp,
struct static_tracepoint_marker marker 
)
void parse_trace_status ( char *  line,
struct trace_status ts 
)
struct traceframe_info* parse_traceframe_info ( const char *  tframe_info) [read]

Definition at line 5608 of file tracepoint.c.

References _, and warning().

Referenced by remote_traceframe_info().

void parse_tracepoint_definition ( char *  line,
struct uploaded_tp **  utpp 
)
void parse_tracepoint_status ( char *  p,
struct breakpoint bp,
struct uploaded_tp utp 
)
void parse_tsv_definition ( char *  line,
struct uploaded_tsv **  utsvp 
)
static void print_one_static_tracepoint_marker ( int  count,
struct static_tracepoint_marker marker 
) [static]
static void process_tracepoint_on_disconnect ( void  ) [static]
void query_if_trace_running ( int  from_tty)
static void report_agent_reqs_errors ( struct agent_expr aexpr) [static]
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)
static void scope_info ( char *  args,
int  from_tty 
) [static]
static struct value* sdata_make_value ( struct gdbarch gdbarch,
struct internalvar var,
void *  ignore 
) [static, read]
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)
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]
static void set_traceframe_num ( int  num) [static]
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)
void stop_tracing ( char *  note)
static char** stringify_collection_list ( struct collection_list list) [static]
static void teval_pseudocommand ( char *  args,
int  from_tty 
) [static]

Definition at line 612 of file tracepoint.c.

References _, and error().

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]
static void tfile_end ( struct trace_file_writer self) [static]
static void tfile_fetch_registers ( struct target_ops ops,
struct regcache regcache,
int  regno 
) [static]
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]
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]
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]
static void tfile_open ( char *  filename,
int  from_tty 
) [static]
static void tfile_read ( gdb_byte readbuf,
int  size 
) [static]
static void tfile_start ( struct trace_file_writer self,
const char *  filename 
) [static]
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]
static int tfile_trace_find ( enum trace_find_type  type,
int  num,
CORE_ADDR  addr1,
CORE_ADDR  addr2,
int tpp 
) [static]
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]
static void tfile_write_raw_data ( struct trace_file_writer self,
gdb_byte buf,
LONGEST  len 
) [static]
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]
static void tfile_write_uploaded_tp ( struct trace_file_writer self,
struct uploaded_tp utp 
) [static]
static void tfile_write_uploaded_tsv ( struct trace_file_writer self,
struct uploaded_tsv utsv 
) [static]
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]
void tfind_1 ( enum trace_find_type  type,
int  num,
CORE_ADDR  addr1,
CORE_ADDR  addr2,
int  from_tty 
)
static void trace_actions_command ( char *  args,
int  from_tty 
) [static]
static void trace_dump_actions ( struct command_line action,
int  stepping_actions,
int  stepping_frame,
int  from_tty 
) [static]
static void trace_dump_command ( char *  args,
int  from_tty 
) [static]
static void trace_file_writer_xfree ( void *  arg) [static]
static void trace_find_command ( char *  args,
int  from_tty 
) [static]
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]
static void trace_find_outside_command ( char *  args,
int  from_tty 
) [static]
static void trace_find_pc_command ( char *  args,
int  from_tty 
) [static]
static void trace_find_range_command ( char *  args,
int  from_tty 
) [static]
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]
void trace_reset_local_state ( void  )
static void trace_save ( const char *  filename,
struct trace_file_writer writer,
int  target_does_save 
) [static]
static void trace_save_command ( char *  args,
int  from_tty 
) [static]
void trace_save_ctf ( const char *  dirname,
int  target_does_save 
)
void trace_save_tfile ( const char *  filename,
int  target_does_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]
void trace_status_mi ( int  on_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]
int traceframe_available_memory ( VEC(mem_range_s)**  result,
CORE_ADDR  memaddr,
ULONGEST  len 
)
static int traceframe_find_block_type ( char  type_wanted,
int  pos 
) [static]
static int traceframe_walk_blocks ( walk_blocks_callback_func  callback,
int  pos,
void *  data 
) [static]
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  )
void validate_actionline ( const char *  line,
struct breakpoint b 
)

Definition at line 377 of file tracepoint.c.

References _, error(), and p.

Referenced by mi_cmd_trace_define_variable(), and trace_variable_command().

static VEC ( tsv_s  ) [static]

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.

References _, and error().

Referenced by _initialize_tracepoint(), encode_actions_1(), trace_dump_actions(), and validate_actionline().


Variable Documentation

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().

const char hexchars[] = "0123456789abcdef" [static]

Definition at line 3824 of file tracepoint.c.

struct internalvar_funcs sdata_funcs [static]
Initial value:
{
  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().

int trace_fd = -1 [static]

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().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines