diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-05-07 18:20:21 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-05-07 18:20:21 +0000 |
commit | 6d350bb576b5a3495c99f1f6e6bc5e199851d36e (patch) | |
tree | 13cf98eaca8a6edb0dda64a68ce09b0208b13935 /gdb/gdbarch.h | |
parent | 3b95049e0a52a4b831c5338aa844d97df5e05df4 (diff) | |
download | gdb-6d350bb576b5a3495c99f1f6e6bc5e199851d36e.zip gdb-6d350bb576b5a3495c99f1f6e6bc5e199851d36e.tar.gz gdb-6d350bb576b5a3495c99f1f6e6bc5e199851d36e.tar.bz2 |
* gdbarch.sh: Add skip_permanent_breakpoint callback.
* gdbarch.h, gdbarch.c: Regenerate.
* infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
(resume): Call gdbarch_skip_permanent_breakpoint instead of
SKIP_PERMANENT_BREAKPOINT. Inline default case.
* hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
Add REGCACHE argument. Use it instead of read/write_register.
(hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
* config/pa/tm-hppah.h: Delete file.
* config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
* config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index e696340..95c0951 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -1368,6 +1368,14 @@ extern void set_gdbarch_vtable_function_descriptors (struct gdbarch *gdbarch, in extern int gdbarch_vbit_in_delta (struct gdbarch *gdbarch); extern void set_gdbarch_vbit_in_delta (struct gdbarch *gdbarch, int vbit_in_delta); +/* Advance PC to next instruction in order to skip a permanent breakpoint. */ + +extern int gdbarch_skip_permanent_breakpoint_p (struct gdbarch *gdbarch); + +typedef void (gdbarch_skip_permanent_breakpoint_ftype) (struct regcache *regcache); +extern void gdbarch_skip_permanent_breakpoint (struct gdbarch *gdbarch, struct regcache *regcache); +extern void set_gdbarch_skip_permanent_breakpoint (struct gdbarch *gdbarch, gdbarch_skip_permanent_breakpoint_ftype *skip_permanent_breakpoint); + extern struct gdbarch_tdep *gdbarch_tdep (struct gdbarch *gdbarch); |