Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2275)

Unified Diff: gdb/record.h

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/ravenscar-thread.c ('k') | gdb/record.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/record.h
diff --git a/gdb/record.h b/gdb/record.h
index 84396e66cbecf7d1210a7752c8d23bb1eab52bc9..124c32be964c24efc34b4d84403ca8796eda4e98 100644
--- a/gdb/record.h
+++ b/gdb/record.h
@@ -1,6 +1,6 @@
/* Process record and replay target for GDB, the GNU debugger.
- Copyright (C) 2008-2012 Free Software Foundation, Inc.
+ Copyright (C) 2008-2013 Free Software Foundation, Inc.
This file is part of GDB.
@@ -20,14 +20,47 @@
#ifndef _RECORD_H_
#define _RECORD_H_
+struct cmd_list_element;
+
#define RECORD_IS_USED (current_target.to_stratum == record_stratum)
-extern int record_debug;
-extern int record_memory_query;
+extern unsigned int record_debug;
+
+/* Allow record targets to add their own sub-commands. */
+extern struct cmd_list_element *record_cmdlist;
+extern struct cmd_list_element *set_record_cmdlist;
+extern struct cmd_list_element *show_record_cmdlist;
+extern struct cmd_list_element *info_record_cmdlist;
+
+/* A list of flags specifying what record target methods should print. */
+enum record_print_flag
+{
+ /* Print the source file and line (if applicable). */
+ RECORD_PRINT_SRC_LINE = (1 << 0),
+
+ /* Print the instruction number range (if applicable). */
+ RECORD_PRINT_INSN_RANGE = (1 << 1),
+};
+
+/* Wrapper for target_read_memory that prints a debug message if
+ reading memory fails. */
+extern int record_read_memory (struct gdbarch *gdbarch,
+ CORE_ADDR memaddr, gdb_byte *myaddr,
+ ssize_t len);
+
+/* The "record goto" command. */
+extern void cmd_record_goto (char *arg, int from_tty);
+
+/* The default "to_disconnect" target method for record targets. */
+extern void record_disconnect (struct target_ops *, char *, int);
+
+/* The default "to_detach" target method for record targets. */
+extern void record_detach (struct target_ops *, const char *, int);
+
+/* The default "to_mourn_inferior" target method for record targets. */
+extern void record_mourn_inferior (struct target_ops *);
-extern int record_arch_list_add_reg (struct regcache *regcache, int num);
-extern int record_arch_list_add_mem (CORE_ADDR addr, int len);
-extern int record_arch_list_add_end (void);
-extern struct cleanup *record_gdb_operation_disable_set (void);
+/* The default "to_kill" target method for record targets. */
+extern void record_kill (struct target_ops *);
#endif /* _RECORD_H_ */
« no previous file with comments | « gdb/ravenscar-thread.c ('k') | gdb/record.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698