aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2009-04-30 02:58:37 +0000
committerHui Zhu <teawater@gmail.com>2009-04-30 02:58:37 +0000
commit69d05d3898f104fab077edf3c80e4f158084a8f4 (patch)
treed6d068b338a26df2b48233131502bc91284809ba /gdb/record.h
parent* target.h (strata): New stratum "record_stratum". (diff)
downloadbinutils-gdb-69d05d3898f104fab077edf3c80e4f158084a8f4.tar.gz
binutils-gdb-69d05d3898f104fab077edf3c80e4f158084a8f4.tar.bz2
binutils-gdb-69d05d3898f104fab077edf3c80e4f158084a8f4.zip
Process record and replay target.
* Makefile.in (SFILES): Add record.c. (COMMON_OBS): Add record.o. * record.c, record.h: New file.
Diffstat (limited to 'gdb/record.h')
-rw-r--r--gdb/record.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/gdb/record.h b/gdb/record.h
new file mode 100644
index 00000000000..d4049ea24cb
--- /dev/null
+++ b/gdb/record.h
@@ -0,0 +1,32 @@
+/* Process record and replay target for GDB, the GNU debugger.
+
+ Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+#ifndef _RECORD_H_
+#define _RECORD_H_
+
+#define RECORD_IS_USED (current_target.to_stratum == record_stratum)
+
+extern int record_debug;
+
+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);
+
+#endif /* _RECORD_H_ */