diff options
author | Hui Zhu <teawater@gmail.com> | 2009-09-21 05:52:06 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2009-09-21 05:52:06 +0000 |
commit | 3846b520e430eb5d47243add80b27a56bb2bd850 (patch) | |
tree | 72d5c444722ac7cca5bb0a7eee482c764636abd6 /gdb/gdbarch.h | |
parent | ba0f96ec3d5dd3db26d4be498af23ede04a7d9ac (diff) | |
download | gdb-3846b520e430eb5d47243add80b27a56bb2bd850.zip gdb-3846b520e430eb5d47243add80b27a56bb2bd850.tar.gz gdb-3846b520e430eb5d47243add80b27a56bb2bd850.tar.bz2 |
2009-09-21 Hui Zhu <teawater@gmail.com>
Michael Snyder <msnyder@vmware.com>
* gdbarch.sh (process_record_signal): New interface.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 027541d..950b7ca 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -822,6 +822,15 @@ typedef int (gdbarch_process_record_ftype) (struct gdbarch *gdbarch, struct regc extern int gdbarch_process_record (struct gdbarch *gdbarch, struct regcache *regcache, CORE_ADDR addr); extern void set_gdbarch_process_record (struct gdbarch *gdbarch, gdbarch_process_record_ftype *process_record); +/* Save process state after a signal. + Return -1 if something goes wrong, 0 otherwise. */ + +extern int gdbarch_process_record_signal_p (struct gdbarch *gdbarch); + +typedef int (gdbarch_process_record_signal_ftype) (struct gdbarch *gdbarch, struct regcache *regcache, enum target_signal signal); +extern int gdbarch_process_record_signal (struct gdbarch *gdbarch, struct regcache *regcache, enum target_signal signal); +extern void set_gdbarch_process_record_signal (struct gdbarch *gdbarch, gdbarch_process_record_signal_ftype *process_record_signal); + /* Signal translation: translate inferior's signal (host's) number into GDB's representation. */ |