GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions | Variables
tracepoint.h File Reference
#include "breakpoint.h"
#include "memrange.h"
#include "gdbsupport/gdb_vecs.h"
#include <vector>
#include <string>

Go to the source code of this file.

Classes

struct  traceframe_info
 
struct  trace_state_variable
 
struct  trace_status
 
struct  uploaded_tp
 
struct  uploaded_tsv
 
struct  static_tracepoint_marker
 
struct  memrange
 
class  collection_list
 
struct  scoped_restore_current_traceframe
 

Typedefs

typedef std::unique_ptr< traceframe_infotraceframe_info_up
 

Enumerations

enum  trace_stop_reason {
  trace_stop_reason_unknown , trace_never_run , trace_stop_command , trace_buffer_full ,
  trace_disconnected , tracepoint_passcount , tracepoint_error
}
 
enum  trace_find_type {
  tfind_number , tfind_pc , tfind_tp , tfind_range ,
  tfind_outside
}
 

Functions

struct trace_statuscurrent_trace_status (void)
 
void parse_static_tracepoint_marker_definition (const char *line, const char **pp, static_tracepoint_marker *marker)
 
int get_traceframe_number (void)
 
int get_tracepoint_number (void)
 
void set_current_traceframe (int num)
 
const char * decode_agent_options (const char *exp, int *trace_string)
 
void encode_actions (struct bp_location *tloc, struct collection_list *tracepoint_list, struct collection_list *stepping_list)
 
void encode_actions_rsp (struct bp_location *tloc, std::vector< std::string > *tdp_actions, std::vector< std::string > *stepping_actions)
 
void validate_actionline (const char *, tracepoint *)
 
void validate_trace_state_variable_name (const char *name)
 
struct trace_state_variablefind_trace_state_variable (const char *name)
 
struct trace_state_variablefind_trace_state_variable_by_number (int number)
 
struct trace_state_variablecreate_trace_state_variable (const char *name)
 
int encode_source_string (int num, ULONGEST addr, const char *srctype, const char *src, char *buf, int buf_size)
 
void parse_trace_status (const char *line, struct trace_status *ts)
 
void parse_tracepoint_status (const char *p, tracepoint *tp, struct uploaded_tp *utp)
 
void parse_tracepoint_definition (const char *line, struct uploaded_tp **utpp)
 
void parse_tsv_definition (const char *line, struct uploaded_tsv **utsvp)
 
struct uploaded_tpget_uploaded_tp (int num, ULONGEST addr, struct uploaded_tp **utpp)
 
void free_uploaded_tps (struct uploaded_tp **utpp)
 
struct uploaded_tsvget_uploaded_tsv (int num, struct uploaded_tsv **utsvp)
 
void free_uploaded_tsvs (struct uploaded_tsv **utsvp)
 
struct tracepointcreate_tracepoint_from_upload (struct uploaded_tp *utp)
 
void merge_uploaded_tracepoints (struct uploaded_tp **utpp)
 
void merge_uploaded_trace_state_variables (struct uploaded_tsv **utsvp)
 
void query_if_trace_running (int from_tty)
 
void disconnect_tracing (void)
 
void trace_reset_local_state (void)
 
void check_trace_running (struct trace_status *)
 
void start_tracing (const char *notes)
 
void stop_tracing (const char *notes)
 
void trace_status_mi (int on_stop)
 
void tvariables_info_1 (void)
 
void save_trace_state_variables (struct ui_file *fp)
 
void tfind_1 (enum trace_find_type type, int num, CORE_ADDR addr1, CORE_ADDR addr2, int from_tty)
 
void trace_save_tfile (const char *filename, int target_does_save)
 
void trace_save_ctf (const char *dirname, int target_does_save)
 
traceframe_info_up parse_traceframe_info (const char *tframe_info)
 
int traceframe_available_memory (std::vector< mem_range > *result, CORE_ADDR memaddr, ULONGEST len)
 
struct traceframe_infoget_traceframe_info (void)
 
struct bp_locationget_traceframe_location (int *stepping_frame_p)
 

Variables

std::string default_collect
 
int trace_regblock_size
 
const char * stop_reason_names []
 
cmd_list_elementwhile_stepping_cmd_element
 

Typedef Documentation

◆ traceframe_info_up

typedef std::unique_ptr<traceframe_info> traceframe_info_up

Definition at line 40 of file tracepoint.h.

Enumeration Type Documentation

◆ trace_find_type

Enumerator
tfind_number 
tfind_pc 
tfind_tp 
tfind_range 
tfind_outside 

Definition at line 405 of file tracepoint.h.

◆ trace_stop_reason

Enumerator
trace_stop_reason_unknown 
trace_never_run 
trace_stop_command 
trace_buffer_full 
trace_disconnected 
tracepoint_passcount 
tracepoint_error 

Definition at line 81 of file tracepoint.h.

Function Documentation

◆ check_trace_running()

void check_trace_running ( struct trace_status * status)
extern

◆ create_trace_state_variable()

struct trace_state_variable * create_trace_state_variable ( const char * name)
extern

◆ create_tracepoint_from_upload()

struct tracepoint * create_tracepoint_from_upload ( struct uploaded_tp * utp)
extern

◆ current_trace_status()

struct trace_status * current_trace_status ( void )

◆ decode_agent_options()

const char * decode_agent_options ( const char * exp,
int * trace_string )
extern

◆ disconnect_tracing()

void disconnect_tracing ( void )
extern

Definition at line 2056 of file tracepoint.c.

References trace_reset_local_state().

Referenced by detach_command(), disconnect_command(), and quit_force().

◆ encode_actions()

void encode_actions ( struct bp_location * tloc,
struct collection_list * tracepoint_list,
struct collection_list * stepping_list )
extern

◆ encode_actions_rsp()

void encode_actions_rsp ( struct bp_location * tloc,
std::vector< std::string > * tdp_actions,
std::vector< std::string > * stepping_actions )
extern

Definition at line 1495 of file tracepoint.c.

References encode_actions(), and collection_list::stringify().

Referenced by remote_target::download_tracepoint().

◆ encode_source_string()

int encode_source_string ( int num,
ULONGEST addr,
const char * srctype,
const char * src,
char * buf,
int buf_size )
extern

◆ find_trace_state_variable()

struct trace_state_variable * find_trace_state_variable ( const char * name)
extern

◆ find_trace_state_variable_by_number()

struct trace_state_variable * find_trace_state_variable_by_number ( int number)
extern

Definition at line 276 of file tracepoint.c.

References trace_state_variable::number, and tvariables.

Referenced by mi_cmd_trace_frame_collected().

◆ free_uploaded_tps()

void free_uploaded_tps ( struct uploaded_tp ** utpp)
extern

Definition at line 2955 of file tracepoint.c.

References uploaded_tp::next.

Referenced by merge_uploaded_tracepoints(), and trace_save().

◆ free_uploaded_tsvs()

void free_uploaded_tsvs ( struct uploaded_tsv ** utsvp)
extern

Definition at line 2988 of file tracepoint.c.

References uploaded_tsv::next, and xfree().

Referenced by merge_uploaded_trace_state_variables(), and trace_save().

◆ get_traceframe_info()

struct traceframe_info * get_traceframe_info ( void )
extern

◆ get_traceframe_location()

struct bp_location * get_traceframe_location ( int * stepping_frame_p)
extern

◆ get_traceframe_number()

int get_traceframe_number ( void )
extern

◆ get_tracepoint_number()

int get_tracepoint_number ( void )
extern

Definition at line 2896 of file tracepoint.c.

References tracepoint_number.

Referenced by tracefile_fetch_registers().

◆ get_uploaded_tp()

struct uploaded_tp * get_uploaded_tp ( int num,
ULONGEST addr,
struct uploaded_tp ** utpp )
extern

Definition at line 2937 of file tracepoint.c.

References uploaded_tp::addr, uploaded_tp::next, and uploaded_tp::number.

Referenced by parse_tracepoint_definition().

◆ get_uploaded_tsv()

struct uploaded_tsv * get_uploaded_tsv ( int num,
struct uploaded_tsv ** utsvp )
extern

Definition at line 2971 of file tracepoint.c.

References uploaded_tsv::next, and uploaded_tsv::number.

Referenced by parse_tsv_definition().

◆ merge_uploaded_trace_state_variables()

void merge_uploaded_trace_state_variables ( struct uploaded_tsv ** utsvp)
extern

◆ merge_uploaded_tracepoints()

void merge_uploaded_tracepoints ( struct uploaded_tp ** utpp)
extern

◆ parse_static_tracepoint_marker_definition()

void parse_static_tracepoint_marker_definition ( const char * line,
const char ** pp,
static_tracepoint_marker * marker )
extern

◆ parse_trace_status()

void parse_trace_status ( const char * line,
struct trace_status * ts )
extern

◆ parse_traceframe_info()

traceframe_info_up parse_traceframe_info ( const char * tframe_info)
extern

Definition at line 3758 of file tracepoint.c.

Referenced by remote_target::traceframe_info().

◆ parse_tracepoint_definition()

void parse_tracepoint_definition ( const char * line,
struct uploaded_tp ** utpp )
extern

◆ parse_tracepoint_status()

void parse_tracepoint_status ( const char * p,
tracepoint * tp,
struct uploaded_tp * utp )
extern

◆ parse_tsv_definition()

void parse_tsv_definition ( const char * line,
struct uploaded_tsv ** utsvp )
extern

◆ query_if_trace_running()

void query_if_trace_running ( int from_tty)
extern

◆ save_trace_state_variables()

void save_trace_state_variables ( struct ui_file * fp)
extern

Definition at line 476 of file tracepoint.c.

References gdb_printf(), and tvariables.

Referenced by save_breakpoints().

◆ set_current_traceframe()

void set_current_traceframe ( int num)
extern

◆ start_tracing()

void start_tracing ( const char * notes)
extern

◆ stop_tracing()

void stop_tracing ( const char * notes)
extern

◆ tfind_1()

void tfind_1 ( enum trace_find_type type,
int num,
CORE_ADDR addr1,
CORE_ADDR addr2,
int from_tty )
extern

◆ trace_reset_local_state()

void trace_reset_local_state ( void )
extern

◆ trace_save_ctf()

void trace_save_ctf ( const char * dirname,
int target_does_save )
extern

Definition at line 370 of file tracefile.c.

References ctf_trace_file_writer_new(), and trace_save().

Referenced by mi_cmd_trace_save(), and tsave_command().

◆ trace_save_tfile()

void trace_save_tfile ( const char * filename,
int target_does_save )
extern

Definition at line 361 of file tracefile.c.

References tfile_trace_file_writer_new(), and trace_save().

Referenced by mi_cmd_trace_save(), and tsave_command().

◆ trace_status_mi()

void trace_status_mi ( int on_stop)
extern

◆ traceframe_available_memory()

int traceframe_available_memory ( std::vector< mem_range > * result,
CORE_ADDR memaddr,
ULONGEST len )
extern

◆ tvariables_info_1()

void tvariables_info_1 ( void )
extern

◆ validate_actionline()

void validate_actionline ( const char * line,
tracepoint * t )
extern

◆ validate_trace_state_variable_name()

void validate_trace_state_variable_name ( const char * name)
extern

Definition at line 303 of file tracepoint.c.

References name.

Referenced by mi_cmd_trace_define_variable(), and trace_variable_command().

Variable Documentation

◆ default_collect

std::string default_collect
extern

◆ stop_reason_names

const char* stop_reason_names[]
extern

Definition at line 164 of file tracepoint.c.

Referenced by parse_trace_status(), and tfile_write_status().

◆ trace_regblock_size

int trace_regblock_size
extern

◆ while_stepping_cmd_element

cmd_list_element* while_stepping_cmd_element
extern

Definition at line 3919 of file tracepoint.c.

Referenced by process_next_line().