GDB (xrefs)
|
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 |
#define MAX_TRACE_UPLOAD 2000 |
Referenced by trace_save().
#define TRACE_WRITE_M_BLOCK_HEADER | ( | writer, | |
addr, | |||
size | |||
) |
Definition at line 30 of file tracefile.c.
Referenced by trace_save().
#define TRACE_WRITE_M_BLOCK_MEMORY | ( | writer, | |
buf, | |||
size | |||
) |
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().
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 | ) |
Definition at line 501 of file tracefile.c.
References OPS_MAGIC, process_stratum, target_ops::to_get_trace_status, target_ops::to_has_all_memory, target_ops::to_has_memory, target_ops::to_has_registers, target_ops::to_has_stack, target_ops::to_magic, target_ops::to_stratum, target_ops::to_thread_alive, tracefile_get_trace_status(), tracefile_has_all_memory(), tracefile_has_memory(), tracefile_has_registers(), tracefile_has_stack(), and tracefile_thread_alive().
Referenced by init_tfile_ops().
|
static |
Definition at line 42 of file tracefile.c.
References trace_file_write_ops::dtor, trace_file_writer::ops, and xfree().
Referenced by trace_save_command(), trace_save_ctf(), and trace_save_tfile().
|
static |
Definition at line 56 of file tracefile.c.
References _, current_trace_status(), trace_frame_write_ops::end, trace_file_write_ops::end, error(), extract_signed_integer(), extract_unsigned_integer(), trace_file_write_ops::frame_ops, free_uploaded_tps(), free_uploaded_tsvs(), gdbarch_byte_order(), int, MAX_TRACE_UPLOAD, uploaded_tp::next, uploaded_tsv::next, offset, trace_file_writer::ops, trace_frame_write_ops::start, trace_file_write_ops::start, status, 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_trace_buffer, trace_file_write_ops::write_uploaded_tp, and trace_file_write_ops::write_uploaded_tsv.
Referenced by trace_save_command(), trace_save_ctf(), and trace_save_tfile().
|
static |
Definition at line 306 of file tracefile.c.
References _, ctf_trace_file_writer_new(), do_cleanups(), error(), error_no_arg(), gdb_buildargv(), make_cleanup(), make_cleanup_freeargv(), printf_filtered(), tfile_trace_file_writer_new(), trace_file_writer_xfree(), and trace_save().
Referenced by _initialize_tracefile().
Definition at line 369 of file tracefile.c.
References ctf_trace_file_writer_new(), do_cleanups(), make_cleanup(), trace_file_writer_xfree(), and trace_save().
Referenced by mi_cmd_trace_save().
Definition at line 355 of file tracefile.c.
References do_cleanups(), make_cleanup(), tfile_trace_file_writer_new(), trace_file_writer_xfree(), and trace_save().
Referenced by mi_cmd_trace_save().
Definition at line 385 of file tracefile.c.
References _, bp_location::address, tracepoint::base, gdbarch_byte_order(), gdbarch_num_regs(), gdbarch_pc_regnum(), get_regcache_arch(), get_tracepoint(), get_tracepoint_number(), breakpoint::loc, bp_location::next, breakpoint::number, regcache_raw_supply(), register_size(), tracepoint::step_count, store_unsigned_integer(), and warning().
Referenced by tfile_fetch_registers().
|
static |
Definition at line 490 of file tracefile.c.
Referenced by init_tracefile_ops().
|
static |
Definition at line 444 of file tracefile.c.
Referenced by init_tracefile_ops().
|
static |
Definition at line 452 of file tracefile.c.
Referenced by init_tracefile_ops().
|
static |
Definition at line 472 of file tracefile.c.
References get_traceframe_number().
Referenced by init_tracefile_ops().
|
static |
Definition at line 462 of file tracefile.c.
References get_traceframe_number().
Referenced by init_tracefile_ops().
|
static |
Definition at line 481 of file tracefile.c.
Referenced by init_tracefile_ops().
initialize_file_ftype _initialize_tracefile |