GDB (xrefs)
|
#include "defs.h"
#include "gdbcmd.h"
#include "completer.h"
#include "record.h"
#include "observable.h"
#include "inferior.h"
#include "gdbsupport/common-utils.h"
#include "cli/cli-utils.h"
#include "disasm.h"
#include "interps.h"
#include <ctype.h>
Go to the source code of this file.
Macros | |
#define | DEBUG(msg, args...) |
Functions | |
struct target_ops * | find_record_target (void) |
static struct target_ops * | require_record_target (void) |
void | record_preopen (void) |
void | record_start (const char *method, const char *format, int from_tty) |
void | record_stop (int from_tty) |
int | record_read_memory (struct gdbarch *gdbarch, CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len) |
static void | record_stop (struct target_ops *t) |
static void | record_unpush (struct target_ops *t) |
void | record_disconnect (struct target_ops *t, const char *args, int from_tty) |
void | record_detach (struct target_ops *t, inferior *inf, int from_tty) |
void | record_mourn_inferior (struct target_ops *t) |
void | record_kill (struct target_ops *t) |
int | record_check_stopped_by_breakpoint (const address_space *aspace, CORE_ADDR pc, enum target_stop_reason *reason) |
static void | show_record_debug (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
static void | cmd_record_start (const char *args, int from_tty) |
static void | cmd_record_delete (const char *args, int from_tty) |
static void | cmd_record_stop (const char *args, int from_tty) |
static void | info_record_command (const char *args, int from_tty) |
static void | cmd_record_save (const char *args, int from_tty) |
void | record_goto (const char *arg) |
static void | cmd_record_goto (const char *arg, int from_tty) |
static void | cmd_record_goto_begin (const char *arg, int from_tty) |
static void | cmd_record_goto_end (const char *arg, int from_tty) |
static ULONGEST | get_insn_number (const char **arg) |
static int | get_context_size (const char **arg) |
static void | no_chunk (const char *arg) |
static gdb_disassembly_flags | get_insn_history_modifiers (const char **arg) |
static int | command_size_to_target_size (unsigned int size) |
static void | cmd_record_insn_history (const char *arg, int from_tty) |
static record_print_flags | get_call_history_modifiers (const char **arg) |
static void | cmd_record_call_history (const char *arg, int from_tty) |
static void | validate_history_size (unsigned int *command_var, unsigned int *setting) |
static void | set_record_insn_history_size (const char *args, int from_tty, struct cmd_list_element *c) |
static void | set_record_call_history_size (const char *args, int from_tty, struct cmd_list_element *c) |
void | _initialize_record () |
Variables | |
unsigned int | record_debug = 0 |
static unsigned int | record_insn_history_size = 10 |
static unsigned int | record_insn_history_size_setshow_var |
static unsigned int | record_call_history_size = 10 |
static unsigned int | record_call_history_size_setshow_var |
struct cmd_list_element * | record_cmdlist = NULL |
static struct cmd_list_element * | record_goto_cmdlist = NULL |
struct cmd_list_element * | set_record_cmdlist = NULL |
struct cmd_list_element * | show_record_cmdlist = NULL |
struct cmd_list_element * | info_record_cmdlist = NULL |
#define DEBUG | ( | msg, | |
args... ) |
Definition at line 57 of file record.c.
Referenced by record_detach(), record_disconnect(), record_kill(), record_mourn_inferior(), record_read_memory(), record_stop(), and record_unpush().
void _initialize_record | ( | ) |
Definition at line 764 of file record.c.
Referenced by initialize_all_files().
|
static |
Definition at line 657 of file record.c.
References command_size_to_target_size(), dont_repeat(), flags, get_call_history_modifiers(), get_context_size(), get_insn_number(), no_chunk(), record_call_history_size, require_record_target(), size, target_call_history(), target_call_history_from(), and target_call_history_range().
|
static |
Definition at line 277 of file record.c.
References gdb_printf(), inferior_ptid, query(), require_record_target(), target_delete_record(), target_record_is_replaying(), and target_supports_delete_record().
|
static |
Definition at line 382 of file record.c.
References record_goto().
|
static |
Definition at line 390 of file record.c.
References require_record_target(), and target_goto_record_begin().
|
static |
Definition at line 402 of file record.c.
References require_record_target(), and target_goto_record_end().
|
static |
Definition at line 543 of file record.c.
References command_size_to_target_size(), dont_repeat(), flags, get_context_size(), get_insn_history_modifiers(), get_insn_number(), no_chunk(), record_insn_history_size, require_record_target(), size, target_insn_history(), target_insn_history_from(), and target_insn_history_range().
|
static |
Definition at line 340 of file record.c.
References inferior_ptid, require_record_target(), and target_save_record().
|
static |
Definition at line 268 of file record.c.
References execute_command().
|
static |
Definition at line 303 of file record.c.
References current_inferior(), gdb_printf(), interps_notify_record_changed(), record_stop(), record_unpush(), and require_record_target().
|
static |
Definition at line 530 of file record.c.
References size.
Referenced by cmd_record_call_history(), and cmd_record_insn_history().
struct target_ops * find_record_target | ( | void | ) |
Definition at line 64 of file record.c.
References find_target_at(), and record_stratum.
Referenced by gdbpy_current_recording(), info_record_command(), record_full_is_used(), record_preopen(), require_record_target(), and use_displaced_stepping().
|
static |
Definition at line 606 of file record.c.
References RECORD_PRINT_INDENT_CALLS, RECORD_PRINT_INSN_RANGE, and RECORD_PRINT_SRC_LINE.
Referenced by cmd_record_call_history().
|
static |
Definition at line 435 of file record.c.
Referenced by cmd_record_call_history(), and cmd_record_insn_history().
|
static |
Definition at line 462 of file record.c.
References DISASSEMBLY_FILENAME, DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_OMIT_PC, DISASSEMBLY_RAW_BYTES, DISASSEMBLY_RAW_INSN, and DISASSEMBLY_SOURCE.
Referenced by cmd_record_insn_history().
|
static |
Definition at line 414 of file record.c.
Referenced by cmd_record_call_history(), and cmd_record_insn_history().
|
static |
Definition at line 322 of file record.c.
References find_record_target(), gdb_printf(), target_ops::info_record(), and target_ops::shortname().
|
static |
Definition at line 453 of file record.c.
Referenced by cmd_record_call_history(), and cmd_record_insn_history().
int record_check_stopped_by_breakpoint | ( | const address_space * | aspace, |
CORE_ADDR | pc, | ||
enum target_stop_reason * | reason ) |
Definition at line 238 of file record.c.
References breakpoint_inserted_here_p(), hardware_breakpoint_inserted_here_p(), TARGET_STOPPED_BY_HW_BREAKPOINT, TARGET_STOPPED_BY_NO_REASON, and TARGET_STOPPED_BY_SW_BREAKPOINT.
Referenced by record_btrace_replay_at_breakpoint(), and record_full_wait_1().
void record_detach | ( | struct target_ops * | t, |
inferior * | inf, | ||
int | from_tty ) |
Definition at line 191 of file record.c.
References DEBUG, record_stop(), record_stratum, record_unpush(), target_ops::shortname(), target_ops::stratum(), and target_detach().
Referenced by record_full_target::detach(), and record_btrace_target::detach().
void record_disconnect | ( | struct target_ops * | t, |
const char * | args, | ||
int | from_tty ) |
Definition at line 176 of file record.c.
References DEBUG, record_stop(), record_stratum, record_unpush(), target_ops::shortname(), target_ops::stratum(), and target_disconnect().
Referenced by record_full_target::disconnect(), and record_full_core_target::disconnect().
void record_goto | ( | const char * | arg | ) |
Definition at line 363 of file record.c.
References parse_and_eval_long(), require_record_target(), and target_goto_record().
Referenced by cmd_record_goto(), and record_full_base_target::goto_bookmark().
void record_kill | ( | struct target_ops * | t | ) |
Definition at line 222 of file record.c.
References DEBUG, record_stratum, record_unpush(), target_ops::shortname(), target_ops::stratum(), and target_kill().
Referenced by record_btrace_target::kill(), and record_full_target::kill().
void record_mourn_inferior | ( | struct target_ops * | t | ) |
Definition at line 206 of file record.c.
References DEBUG, inferior_ptid, record_stratum, record_unpush(), target_ops::shortname(), target_ops::stratum(), and target_mourn_inferior().
Referenced by record_btrace_target::mourn_inferior(), and record_full_target::mourn_inferior().
void record_preopen | ( | void | ) |
Definition at line 87 of file record.c.
References find_record_target().
Referenced by record_btrace_target_open(), and record_full_open().
int record_read_memory | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | memaddr, | ||
gdb_byte * | myaddr, | ||
ssize_t | len ) |
Definition at line 140 of file record.c.
References DEBUG, paddress(), and target_read_memory().
Referenced by i386_process_record(), i386_record_lea_modrm_addr(), i386_record_modrm(), record_full_arch_list_add_mem(), and record_full_exec_insn().
void record_start | ( | const char * | method, |
const char * | format, | ||
int | from_tty ) |
Definition at line 98 of file record.c.
References execute_command_to_string().
Referenced by gdbpy_start_recording().
void record_stop | ( | int | from_tty | ) |
Definition at line 132 of file record.c.
References execute_command_to_string().
Referenced by cmd_record_stop(), gdbpy_stop_recording(), record_detach(), and record_disconnect().
|
static |
Definition at line 156 of file record.c.
References DEBUG, target_ops::shortname(), and target_ops::stop_recording().
|
static |
Definition at line 166 of file record.c.
References current_inferior(), DEBUG, target_ops::shortname(), and inferior::unpush_target().
Referenced by cmd_record_stop(), record_detach(), record_disconnect(), record_kill(), and record_mourn_inferior().
|
static |
Definition at line 72 of file record.c.
References find_record_target().
Referenced by cmd_record_call_history(), cmd_record_delete(), cmd_record_goto_begin(), cmd_record_goto_end(), cmd_record_insn_history(), cmd_record_save(), cmd_record_stop(), and record_goto().
|
static |
Definition at line 755 of file record.c.
References record_call_history_size, record_call_history_size_setshow_var, and validate_history_size().
|
static |
Definition at line 743 of file record.c.
References record_insn_history_size, record_insn_history_size_setshow_var, and validate_history_size().
|
static |
Definition at line 258 of file record.c.
References gdb_printf().
|
static |
Definition at line 723 of file record.c.
Referenced by set_record_call_history_size(), and set_record_insn_history_size().
struct cmd_list_element* info_record_cmdlist = NULL |
|
static |
Definition at line 45 of file record.c.
Referenced by cmd_record_call_history(), and set_record_call_history_size().
|
static |
Definition at line 49 of file record.c.
Referenced by set_record_call_history_size().
struct cmd_list_element* record_cmdlist = NULL |
unsigned int record_debug = 0 |
Definition at line 34 of file record.c.
Referenced by aarch64_record_asimd_load_store(), aarch64_record_data_proc_simd_fp(), aarch64_record_load_store(), arm_process_record(), record_full_base_target::close(), ftrace_update_insns(), record_full_base_target::get_bookmark(), record_full_base_target::goto_bookmark(), i386_process_record(), record_full_core_target::kill(), moxie_process_readu(), moxie_process_record(), record_full_arch_list_add(), record_full_arch_list_add_end(), record_full_arch_list_add_mem(), record_full_arch_list_add_reg(), record_full_exec_insn(), record_full_open(), record_full_open_1(), record_full_restore(), record_full_sig_handler(), record_full_wait_1(), record_linux_msghdr(), record_linux_sockaddr(), record_linux_system_call(), record_full_base_target::save_record(), and record_full_target::xfer_partial().
|
static |
|
static |
Definition at line 37 of file record.c.
Referenced by cmd_record_insn_history(), and set_record_insn_history_size().
|
static |
Definition at line 42 of file record.c.
Referenced by set_record_insn_history_size().
struct cmd_list_element* set_record_cmdlist = NULL |
struct cmd_list_element* show_record_cmdlist = NULL |