GDB (xrefs)
Macros | Functions | Variables
/tmp/gdb-7.10/gdb/tracefile.c File Reference
#include "defs.h"
#include "tracefile.h"
#include "ctf.h"
#include "exec.h"
#include "regcache.h"

Go to the source code of this file.

Macros

#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
 

Functions

static void trace_file_writer_xfree (void *arg)
 
static void trace_save (const char *filename, struct trace_file_writer *writer, int target_does_save)
 
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)
 
void tracefile_fetch_registers (struct regcache *regcache, int regno)
 
static int tracefile_has_all_memory (struct target_ops *ops)
 
static int tracefile_has_memory (struct target_ops *ops)
 
static int tracefile_has_stack (struct target_ops *ops)
 
static int tracefile_has_registers (struct target_ops *ops)
 
static int tracefile_thread_alive (struct target_ops *ops, ptid_t ptid)
 
static int tracefile_get_trace_status (struct target_ops *self, struct trace_status *ts)
 
void init_tracefile_ops (struct target_ops *ops)
 
void _initialize_tracefile (void)
 

Variables

initialize_file_ftype _initialize_tracefile
 

Macro Definition Documentation

#define MAX_TRACE_UPLOAD   2000

Referenced by trace_save().

#define TRACE_WRITE_M_BLOCK_HEADER (   writer,
  addr,
  size 
)
Value:
writer->ops->frame_ops->write_m_block_header ((writer), (addr), \
(size))
size_t size
Definition: go32-nat.c:242

Definition at line 30 of file tracefile.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))
size_t size
Definition: go32-nat.c:242

Definition at line 33 of file tracefile.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 28 of file tracefile.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 36 of file tracefile.c.

Referenced by trace_save().

Function Documentation

void _initialize_tracefile ( void  )

Definition at line 516 of file tracefile.c.

References _, add_com(), class_trace, and trace_save_command().

void init_tracefile_ops ( struct target_ops ops)
static void trace_file_writer_xfree ( void *  arg)
static
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 
)
void tracefile_fetch_registers ( struct regcache regcache,
int  regno 
)
static int tracefile_get_trace_status ( struct target_ops self,
struct trace_status ts 
)
static

Definition at line 490 of file tracefile.c.

Referenced by init_tracefile_ops().

static int tracefile_has_all_memory ( struct target_ops ops)
static

Definition at line 444 of file tracefile.c.

Referenced by init_tracefile_ops().

static int tracefile_has_memory ( struct target_ops ops)
static

Definition at line 452 of file tracefile.c.

Referenced by init_tracefile_ops().

static int tracefile_has_registers ( struct target_ops ops)
static

Definition at line 472 of file tracefile.c.

References get_traceframe_number().

Referenced by init_tracefile_ops().

static int tracefile_has_stack ( struct target_ops ops)
static

Definition at line 462 of file tracefile.c.

References get_traceframe_number().

Referenced by init_tracefile_ops().

static int tracefile_thread_alive ( struct target_ops ops,
ptid_t  ptid 
)
static

Definition at line 481 of file tracefile.c.

Referenced by init_tracefile_ops().

Variable Documentation

initialize_file_ftype _initialize_tracefile