diff options
author | Pedro Alves <palves@redhat.com> | 2012-07-20 11:22:32 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-07-20 11:22:32 +0000 |
commit | 4ffa4fc748a39a8ec5192c6247fc9f9b33217198 (patch) | |
tree | b079822a9327e0994b8168a2176e8e918f71a92f /gdb/record.h | |
parent | gdb/ (diff) | |
download | binutils-gdb-4ffa4fc748a39a8ec5192c6247fc9f9b33217198.tar.gz binutils-gdb-4ffa4fc748a39a8ec5192c6247fc9f9b33217198.tar.bz2 binutils-gdb-4ffa4fc748a39a8ec5192c6247fc9f9b33217198.zip |
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.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/record.h b/gdb/record.h index 84396e66cbe..ee591eafe67 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_ */ |