From 8defab1af704e456ddf7da74f3e7617bdb70ca3b Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 13 Mar 2008 12:22:14 +0000 Subject: * breakpoint.h (breakpoint_restore_shadows): New declaration. * breakpoint.c (breakpoint_restore_shadows): New. (read_memory_nobpt): Delete. * gdbcore.h (read_memory_nobpt): Delete declaration. * target.c (memory_xfer_partial): Call breakpoint_restore_shadows. (restore_show_memory_breakpoints) (make_show_memory_beakpoints_cleanup): New. (show_memory_breakpoints): New. * target.h (make_show_memory_beakpoints_cleanup): Declare. * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Make sure we see memory breakpoints when checking if breakpoint is still there. * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c, hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c, m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt. --- gdb/breakpoint.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/breakpoint.h') diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index 16bb927..5376455 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -859,4 +859,9 @@ extern int deprecated_remove_raw_breakpoint (void *); target. */ int watchpoints_triggered (struct target_waitstatus *); +/* Update BUF, which is LEN bytes read from the target address MEMADDR, + by replacing any memory breakpoints with their shadowed contents. */ +void breakpoint_restore_shadows (gdb_byte *buf, ULONGEST memaddr, + LONGEST len); + #endif /* !defined (BREAKPOINT_H) */ -- cgit v1.1