GDB (xrefs)
|
#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_deleter > | trace_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 () |
#define MAX_TRACE_UPLOAD 2000 |
#define TRACE_WRITE_M_BLOCK_HEADER | ( | writer, | |
addr, | |||
size ) |
Definition at line 33 of file tracefile.c.
Referenced by trace_save().
#define TRACE_WRITE_M_BLOCK_MEMORY | ( | writer, | |
buf, | |||
size ) |
Definition at line 36 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 31 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 39 of file tracefile.c.
Referenced by trace_save().
typedef std::unique_ptr<trace_file_writer, trace_file_writer_deleter> trace_file_writer_up |
Definition at line 56 of file tracefile.c.
void _initialize_tracefile | ( | ) |
Definition at line 477 of file tracefile.c.
Referenced by initialize_all_files().
|
static |
Definition at line 64 of file tracefile.c.
References current_trace_status(), trace_frame_write_ops::end, trace_file_write_ops::end, extract_signed_integer(), extract_unsigned_integer(), trace_file_write_ops::frame_ops, free_uploaded_tps(), free_uploaded_tsvs(), gdbarch_byte_order(), MAX_TRACE_UPLOAD, uploaded_tp::next, uploaded_tsv::next, trace_file_writer::ops, trace_file_write_ops::start, trace_frame_write_ops::start, target_gdbarch(), target_get_raw_trace_data(), target_get_trace_status(), target_get_tracepoint_status(), trace_file_write_ops::target_save, target_upload_trace_state_variables(), target_upload_tracepoints(), trace_regblock_size, TRACE_WRITE_M_BLOCK_HEADER, TRACE_WRITE_M_BLOCK_MEMORY, TRACE_WRITE_R_BLOCK, TRACE_WRITE_V_BLOCK, trace_file_write_ops::write_definition_end, trace_file_write_ops::write_header, trace_file_write_ops::write_regblock_type, trace_file_write_ops::write_status, trace_file_write_ops::write_tdesc, trace_file_write_ops::write_trace_buffer, trace_file_write_ops::write_uploaded_tp, and trace_file_write_ops::write_uploaded_tsv.
Referenced by trace_save_ctf(), and trace_save_tfile().
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().
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().
void tracefile_fetch_registers | ( | struct regcache * | regcache, |
int | regno ) |
Definition at line 380 of file tracefile.c.
References bp_location::address, reg_buffer::arch(), breakpoint::first_loc(), gdbarch_guess_tracepoint_registers(), gdbarch_num_regs(), get_tracepoint(), get_tracepoint_number(), breakpoint::has_locations(), breakpoint::has_multiple_locations(), breakpoint::number, reg_buffer::raw_supply(), and tracepoint::step_count.
Referenced by tfile_target::fetch_registers().
|
static |
Definition at line 320 of file tracefile.c.
References error_no_arg(), gdb_printf(), trace_save_ctf(), and trace_save_tfile().