diff options
author | Aleksandar Ristovski <aristovski@qnx.com> | 2008-05-01 19:31:52 +0000 |
---|---|---|
committer | Aleksandar Ristovski <aristovski@qnx.com> | 2008-05-01 19:31:52 +0000 |
commit | 1cded358ac11bda3c08ed79b99e304b3d120b301 (patch) | |
tree | b47e91d6b2813a039a923cf8af7b6d0839676ce3 /gdb/target.h | |
parent | a0ef42744d050b642351a3974faca030269f5504 (diff) | |
download | gdb-1cded358ac11bda3c08ed79b99e304b3d120b301.zip gdb-1cded358ac11bda3c08ed79b99e304b3d120b301.tar.gz gdb-1cded358ac11bda3c08ed79b99e304b3d120b301.tar.bz2 |
PR gdb/2343
* corelow.c (core_open): Use gdbarch_target_signal_from_host to
translate signal numeric value from the target to GDB's enum
target_signal.
* gdbarch.c, gdbarch.h: Regenerated.
* gdbarch.sh: Added two new functions target_signal_from_host and
target_signal_to_host.
* target.h (default_target_signal_from_host,
default_target_signal_to_host): New functions - declarations.
* signals/signals.c (struct gdbarch): New declaration.
(default_target_signal_to_host, default_target_signal_from_host): New
functions.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h index e0341e1..84cd008 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -1233,6 +1233,11 @@ extern int target_signal_to_host_p (enum target_signal signo); extern enum target_signal target_signal_from_host (int); extern int target_signal_to_host (enum target_signal); +extern enum target_signal default_target_signal_from_host (struct gdbarch *, + int); +extern int default_target_signal_to_host (struct gdbarch *, + enum target_signal); + /* Convert from a number used in a GDB command to an enum target_signal. */ extern enum target_signal target_signal_from_command (int); |