aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.h
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2003-10-13 23:41:40 +0000
committerKevin Buettner <kevinb@redhat.com>2003-10-13 23:41:40 +0000
commita113152116cefd055d67b816cd19b98d8f03f0b4 (patch)
treeac101132bb11aeb4e50c2df68aede1a1c96db539 /gdb/gdbarch.h
parentf0b24077ac7aefa74aa31f882f3aaf5ace47c733 (diff)
downloadgdb-a113152116cefd055d67b816cd19b98d8f03f0b4.zip
gdb-a113152116cefd055d67b816cd19b98d8f03f0b4.tar.gz
gdb-a113152116cefd055d67b816cd19b98d8f03f0b4.tar.bz2
* gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
* gdbarch.h, gdbarch.c: Regenerate.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r--gdb/gdbarch.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index 3f8ee0d..a82a12f 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -1644,6 +1644,12 @@ extern void set_gdbarch_breakpoint_from_pc (struct gdbarch *gdbarch, gdbarch_bre
#define BREAKPOINT_FROM_PC(pcptr, lenptr) (gdbarch_breakpoint_from_pc (current_gdbarch, pcptr, lenptr))
#endif
+extern int gdbarch_adjust_breakpoint_address_p (struct gdbarch *gdbarch);
+
+typedef CORE_ADDR (gdbarch_adjust_breakpoint_address_ftype) (struct gdbarch *gdbarch, CORE_ADDR bpaddr);
+extern CORE_ADDR gdbarch_adjust_breakpoint_address (struct gdbarch *gdbarch, CORE_ADDR bpaddr);
+extern void set_gdbarch_adjust_breakpoint_address (struct gdbarch *gdbarch, gdbarch_adjust_breakpoint_address_ftype *adjust_breakpoint_address);
+
typedef int (gdbarch_memory_insert_breakpoint_ftype) (CORE_ADDR addr, char *contents_cache);
extern int gdbarch_memory_insert_breakpoint (struct gdbarch *gdbarch, CORE_ADDR addr, char *contents_cache);
extern void set_gdbarch_memory_insert_breakpoint (struct gdbarch *gdbarch, gdbarch_memory_insert_breakpoint_ftype *memory_insert_breakpoint);