aboutsummaryrefslogtreecommitdiff
path: root/gdb/record.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-07-20 11:22:32 +0000
committerPedro Alves <palves@redhat.com>2012-07-20 11:22:32 +0000
commit4ffa4fc748a39a8ec5192c6247fc9f9b33217198 (patch)
treeb079822a9327e0994b8168a2176e8e918f71a92f /gdb/record.h
parentc24343e28935f4ae36989a8e3f13b4f9cde23d3c (diff)
downloadfsf-binutils-gdb-4ffa4fc748a39a8ec5192c6247fc9f9b33217198.zip
fsf-binutils-gdb-4ffa4fc748a39a8ec5192c6247fc9f9b33217198.tar.gz
fsf-binutils-gdb-4ffa4fc748a39a8ec5192c6247fc9f9b33217198.tar.bz2
2012-07-20 Pedro Alves <palves@redhat.com>
* i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr) (i386_process_record): Use record_read_memory. * record.c (record_read_memory): New function. (record_arch_list_add_mem, record_exec_insn): Use record_read_memory. * record.h (record_read_memory): Declare.
Diffstat (limited to 'gdb/record.h')
-rw-r--r--gdb/record.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/record.h b/gdb/record.h
index 84396e6..ee591ea 100644
--- a/gdb/record.h
+++ b/gdb/record.h
@@ -30,4 +30,10 @@ 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);
+/* 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);
+
#endif /* _RECORD_H_ */