GDB (xrefs)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/record.c File Reference
#include "defs.h"
#include "gdbcmd.h"
#include "completer.h"
#include "record.h"
#include "observer.h"
#include "inferior.h"
#include "common/common-utils.h"
#include "cli/cli-utils.h"
#include "disasm.h"
#include <ctype.h>

Go to the source code of this file.

Defines

#define DEBUG(msg, args...)

Functions

static struct target_opsfind_record_target (void)
static struct target_opsrequire_record_target (void)
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, char *args, int from_tty)
void record_detach (struct target_ops *t, char *args, int from_tty)
void record_mourn_inferior (struct target_ops *t)
void record_kill (struct target_ops *t)
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 (char *args, int from_tty)
static void cmd_record_delete (char *args, int from_tty)
static void cmd_record_stop (char *args, int from_tty)
static void set_record_command (char *args, int from_tty)
static void show_record_command (char *args, int from_tty)
static void info_record_command (char *args, int from_tty)
static void cmd_record_save (char *args, int from_tty)
void cmd_record_goto (char *arg, int from_tty)
static void cmd_record_goto_begin (char *arg, int from_tty)
static void cmd_record_goto_end (char *arg, int from_tty)
static ULONGEST get_insn_number (char **arg)
static int get_context_size (char **arg)
static void no_chunk (char *arg)
static int get_insn_history_modifiers (char **arg)
static int command_size_to_target_size (unsigned int size)
static void cmd_record_insn_history (char *arg, int from_tty)
static int get_call_history_modifiers (char **arg)
static void cmd_record_call_history (char *arg, int from_tty)
static void validate_history_size (unsigned int *command_var, unsigned int *setting)
static void set_record_insn_history_size (char *args, int from_tty, struct cmd_list_element *c)
static void set_record_call_history_size (char *args, int from_tty, struct cmd_list_element *c)
void _initialize_record (void)

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_elementrecord_cmdlist = NULL
struct cmd_list_elementrecord_goto_cmdlist = NULL
struct cmd_list_elementset_record_cmdlist = NULL
struct cmd_list_elementshow_record_cmdlist = NULL
struct cmd_list_elementinfo_record_cmdlist = NULL
initialize_file_ftype _initialize_record

Define Documentation

#define DEBUG (   msg,
  args... 
)
Value:
if (record_debug)                                                       \
    fprintf_unfiltered (gdb_stdlog, "record: " msg "\n", ##args)

Definition at line 56 of file record.c.

Referenced by record_detach(), record_disconnect(), record_kill(), record_mourn_inferior(), record_read_memory(), record_stop(), and record_unpush().


Function Documentation

void _initialize_record ( void  )
static void cmd_record_call_history ( char *  arg,
int  from_tty 
) [static]
static void cmd_record_delete ( char *  args,
int  from_tty 
) [static]
void cmd_record_goto ( char *  arg,
int  from_tty 
)
static void cmd_record_goto_begin ( char *  arg,
int  from_tty 
) [static]

Definition at line 332 of file record.c.

References _, error(), require_record_target(), and target_goto_record_begin().

Referenced by _initialize_record().

static void cmd_record_goto_end ( char *  arg,
int  from_tty 
) [static]

Definition at line 344 of file record.c.

References _, error(), require_record_target(), and target_goto_record_end().

Referenced by _initialize_record().

static void cmd_record_insn_history ( char *  arg,
int  from_tty 
) [static]
static void cmd_record_save ( char *  args,
int  from_tty 
) [static]
static void cmd_record_start ( char *  args,
int  from_tty 
) [static]

Definition at line 201 of file record.c.

References execute_command().

Referenced by _initialize_record().

static void cmd_record_stop ( char *  args,
int  from_tty 
) [static]
static int command_size_to_target_size ( unsigned int  size) [static]

Definition at line 466 of file record.c.

References gdb_assert, and size.

Referenced by cmd_record_call_history(), and cmd_record_insn_history().

static struct target_ops* find_record_target ( void  ) [static, read]
static int get_call_history_modifiers ( char **  arg) [static]

Definition at line 544 of file record.c.

References _, error(), RECORD_PRINT_INSN_RANGE, RECORD_PRINT_SRC_LINE, and skip_spaces().

Referenced by cmd_record_call_history().

static int get_context_size ( char **  arg) [static]

Definition at line 377 of file record.c.

References _, error(), and skip_spaces().

Referenced by cmd_record_call_history(), and cmd_record_insn_history().

static int get_insn_history_modifiers ( char **  arg) [static]
static ULONGEST get_insn_number ( char **  arg) [static]

Definition at line 356 of file record.c.

References _, error(), skip_spaces_const(), strtoulst(), and ULONGEST.

Referenced by cmd_record_call_history(), and cmd_record_insn_history().

static void info_record_command ( char *  args,
int  from_tty 
) [static]
static void no_chunk ( char *  arg) [static]

Definition at line 393 of file record.c.

References _, and error().

Referenced by cmd_record_call_history(), and cmd_record_insn_history().

void record_detach ( struct target_ops t,
char *  args,
int  from_tty 
)
void record_disconnect ( struct target_ops t,
char *  args,
int  from_tty 
)
void record_kill ( struct target_ops t)
void record_mourn_inferior ( struct target_ops t)
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]
static void record_unpush ( struct target_ops t) [static]
static struct target_ops* require_record_target ( void  ) [static, read]
static void set_record_call_history_size ( char *  args,
int  from_tty,
struct cmd_list_element c 
) [static]
static void set_record_command ( char *  args,
int  from_tty 
) [static]

Definition at line 254 of file record.c.

References _, all_commands, gdb_stdout, help_list(), and printf_unfiltered().

Referenced by _initialize_record().

static void set_record_insn_history_size ( char *  args,
int  from_tty,
struct cmd_list_element c 
) [static]
static void show_record_command ( char *  args,
int  from_tty 
) [static]

Definition at line 264 of file record.c.

References cmd_show_list().

Referenced by _initialize_record().

static void show_record_debug ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
) [static]

Definition at line 191 of file record.c.

References _, and fprintf_filtered().

Referenced by _initialize_record().

static void validate_history_size ( unsigned int command_var,
unsigned int setting 
) [static]

Definition at line 663 of file record.c.

References _, and error().

Referenced by set_record_call_history_size(), and set_record_insn_history_size().


Variable Documentation

Definition at line 54 of file record.c.

unsigned int record_call_history_size = 10 [static]

Definition at line 48 of file record.c.

Referenced by _initialize_record(), and set_record_call_history_size().

Definition at line 50 of file record.c.

Referenced by _initialize_record_full().

unsigned int record_debug = 0

Definition at line 51 of file record.c.

unsigned int record_insn_history_size = 10 [static]

Definition at line 41 of file record.c.

Referenced by _initialize_record(), and set_record_insn_history_size().

Definition at line 52 of file record.c.

Referenced by _initialize_record_full().

Definition at line 53 of file record.c.

Referenced by _initialize_record_full().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines