GDB (xrefs)
Macros | Functions
/tmp/gdb-8.1/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 tsave_command (const 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)
 

Macro Definition Documentation

◆ MAX_TRACE_UPLOAD

#define MAX_TRACE_UPLOAD   2000

Referenced by trace_save().

◆ TRACE_WRITE_M_BLOCK_HEADER

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

◆ TRACE_WRITE_M_BLOCK_MEMORY

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

◆ TRACE_WRITE_R_BLOCK

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

◆ TRACE_WRITE_V_BLOCK

#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

◆ _initialize_tracefile()

void _initialize_tracefile ( void  )

Definition at line 499 of file tracefile.c.

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

◆ init_tracefile_ops()

void init_tracefile_ops ( struct target_ops ops)

◆ trace_file_writer_xfree()

static void trace_file_writer_xfree ( void *  arg)
static

◆ trace_save()

static void trace_save ( const char *  filename,
struct trace_file_writer writer,
int  target_does_save 
)
static

◆ trace_save_ctf()

void trace_save_ctf ( const char *  dirname,
int  target_does_save 
)

◆ trace_save_tfile()

void trace_save_tfile ( const char *  filename,
int  target_does_save 
)

◆ tracefile_fetch_registers()

void tracefile_fetch_registers ( struct regcache regcache,
int  regno 
)

◆ tracefile_get_trace_status()

static int tracefile_get_trace_status ( struct target_ops self,
struct trace_status ts 
)
static

Definition at line 475 of file tracefile.c.

Referenced by init_tracefile_ops().

◆ tracefile_has_all_memory()

static int tracefile_has_all_memory ( struct target_ops ops)
static

Definition at line 429 of file tracefile.c.

Referenced by init_tracefile_ops().

◆ tracefile_has_memory()

static int tracefile_has_memory ( struct target_ops ops)
static

Definition at line 437 of file tracefile.c.

Referenced by init_tracefile_ops().

◆ tracefile_has_registers()

static int tracefile_has_registers ( struct target_ops ops)
static

Definition at line 457 of file tracefile.c.

References get_traceframe_number().

Referenced by init_tracefile_ops().

◆ tracefile_has_stack()

static int tracefile_has_stack ( struct target_ops ops)
static

Definition at line 447 of file tracefile.c.

References get_traceframe_number().

Referenced by init_tracefile_ops().

◆ tracefile_thread_alive()

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

Definition at line 466 of file tracefile.c.

Referenced by init_tracefile_ops().

◆ tsave_command()

static void tsave_command ( const char *  args,
int  from_tty 
)
static