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

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)
struct trace_statuscurrent_trace_status (void)
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)
void validate_trace_state_variable_name (const char *name)
void tvariables_info_1 (void)
void save_trace_state_variables (struct ui_file *fp)
const char * decode_agent_options (const char *exp, int *trace_string)
void validate_actionline (const char *line, struct breakpoint *b)
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)
void trace_reset_local_state (void)
void start_tracing (char *notes)
void stop_tracing (char *note)
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)
struct bp_locationget_traceframe_location (int *stepping_frame_p)
int encode_source_string (int tpnum, ULONGEST addr, char *srctype, char *src, char *buf, int buf_size)
void trace_save_tfile (const char *filename, int target_does_save)
void trace_save_ctf (const char *dirname, int target_does_save)
int get_traceframe_number (void)
int get_tracepoint_number (void)
void set_current_traceframe (int num)
void set_traceframe_number (int num)
struct cleanup * make_cleanup_restore_current_traceframe (void)
struct cleanup * make_cleanup_restore_traceframe_number (void)
struct uploaded_tpget_uploaded_tp (int num, ULONGEST addr, struct uploaded_tp **utpp)
struct uploaded_tsvget_uploaded_tsv (int num, struct uploaded_tsv **utsvp)
void merge_uploaded_tracepoints (struct uploaded_tp **uploaded_tps)
void merge_uploaded_trace_state_variables (struct uploaded_tsv **uploaded_tsvs)
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)
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)
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)
int trace_regblock_size

Define Documentation

#define MAX_AGENT_EXPR_LEN   184

Definition at line 81 of file tracepoint.c.

#define MAX_TRACE_UPLOAD   2000

Definition at line 3284 of file tracepoint.c.

#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.

#define TRACE_HEADER_SIZE   8

Definition at line 4242 of file tracepoint.c.

#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.

#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.

#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.

#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.


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  )

Definition at line 5793 of file tracepoint.c.

struct trace_state_variable* create_trace_state_variable ( const char *  name) [read]

Definition at line 312 of file tracepoint.c.

struct trace_status* current_trace_status ( void  ) [read]

Definition at line 219 of file tracepoint.c.

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

Definition at line 620 of file tracepoint.c.

void disconnect_tracing ( void  )

Definition at line 2308 of file tracepoint.c.

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.

void encode_actions_rsp ( struct bp_location tloc,
char ***  tdp_actions,
char ***  stepping_actions 
)

Definition at line 1699 of file tracepoint.c.

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.

struct trace_state_variable* find_trace_state_variable ( const char *  name) [read]

Definition at line 325 of file tracepoint.c.

Definition at line 341 of file tracepoint.c.

void free_current_marker ( void *  arg)

Definition at line 5338 of file tracepoint.c.

struct traceframe_info* get_traceframe_info ( void  ) [read]

Definition at line 5730 of file tracepoint.c.

struct bp_location* get_traceframe_location ( int stepping_frame_p) [read]

Definition at line 2979 of file tracepoint.c.

Definition at line 3845 of file tracepoint.c.

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.

struct uploaded_tsv* get_uploaded_tsv ( int  num,
struct uploaded_tsv **  utsvp 
) [read]

Definition at line 3975 of file tracepoint.c.

struct cleanup* make_cleanup_restore_current_traceframe ( void  ) [read]

Definition at line 3918 of file tracepoint.c.

struct cleanup* make_cleanup_restore_traceframe_number ( void  ) [read]

Definition at line 3930 of file tracepoint.c.

void merge_uploaded_trace_state_variables ( struct uploaded_tsv **  uploaded_tsvs)

Definition at line 4187 of file tracepoint.c.

void merge_uploaded_tracepoints ( struct uploaded_tp **  uploaded_tps)

Definition at line 4056 of file tracepoint.c.

void parse_static_tracepoint_marker_definition ( char *  line,
char **  pp,
struct static_tracepoint_marker marker 
)

Definition at line 5357 of file tracepoint.c.

void parse_trace_status ( char *  line,
struct trace_status ts 
)

Definition at line 4429 of file tracepoint.c.

struct traceframe_info* parse_traceframe_info ( const char *  tframe_info) [read]

Definition at line 5608 of file tracepoint.c.

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

Definition at line 4612 of file tracepoint.c.

void parse_tracepoint_status ( char *  p,
struct breakpoint bp,
struct uploaded_tp utp 
)

Definition at line 4589 of file tracepoint.c.

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

Definition at line 4727 of file tracepoint.c.

void query_if_trace_running ( int  from_tty)

Definition at line 2267 of file tracepoint.c.

Definition at line 5395 of file tracepoint.c.

void save_trace_state_variables ( struct ui_file *  fp)

Definition at line 568 of file tracepoint.c.

void set_current_traceframe ( int  num)

Definition at line 3860 of file tracepoint.c.

void set_traceframe_number ( int  num)

Definition at line 3888 of file tracepoint.c.

void start_tracing ( char *  notes)

Definition at line 1785 of file tracepoint.c.

void stop_tracing ( char *  note)

Definition at line 1945 of file tracepoint.c.

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

Definition at line 2319 of file tracepoint.c.

void trace_reset_local_state ( void  )

Definition at line 1776 of file tracepoint.c.

void trace_save_ctf ( const char *  dirname,
int  target_does_save 
)

Definition at line 3747 of file tracepoint.c.

void trace_save_tfile ( const char *  filename,
int  target_does_save 
)

Definition at line 3733 of file tracepoint.c.

void trace_status_mi ( int  on_stop)

Definition at line 2153 of file tracepoint.c.

int traceframe_available_memory ( VEC(mem_range_s)**  result,
CORE_ADDR  memaddr,
ULONGEST  len 
)

Definition at line 5745 of file tracepoint.c.

void tvariables_info_1 ( void  )

Definition at line 494 of file tracepoint.c.

void validate_actionline ( const char *  line,
struct breakpoint b 
)

Definition at line 711 of file tracepoint.c.

Definition at line 377 of file tracepoint.c.


Variable Documentation

void(* deprecated_trace_find_hook)(char *arg, int from_tty)

Definition at line 85 of file tracepoint.c.

void(* deprecated_trace_start_stop_hook)(int start, int from_tty)

Definition at line 86 of file tracepoint.c.

Definition at line 4249 of file tracepoint.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines