GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
tracefile.c File Reference
#include "defs.h"
#include "tracefile.h"
#include "tracectf.h"
#include "exec.h"
#include "regcache.h"
#include "gdbsupport/byte-vector.h"
#include "gdbarch.h"
#include "gdbsupport/buildargv.h"

Go to the source code of this file.

Classes

struct  trace_file_writer_deleter
 

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
 

Typedefs

typedef std::unique_ptr< trace_file_writer, trace_file_writer_deletertrace_file_writer_up
 

Functions

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)
 
void _initialize_tracefile ()
 

Macro Definition Documentation

◆ MAX_TRACE_UPLOAD

#define MAX_TRACE_UPLOAD   2000

◆ 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:239

Definition at line 33 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))

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

Referenced by trace_save().

Typedef Documentation

◆ trace_file_writer_up

Definition at line 56 of file tracefile.c.

Function Documentation

◆ _initialize_tracefile()

void _initialize_tracefile ( )

Definition at line 477 of file tracefile.c.

Referenced by initialize_all_files().

◆ 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 )

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 )

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

◆ tracefile_fetch_registers()

void tracefile_fetch_registers ( struct regcache * regcache,
int regno )

◆ tsave_command()

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

Definition at line 320 of file tracefile.c.

References error_no_arg(), gdb_printf(), trace_save_ctf(), and trace_save_tfile().