aboutsummaryrefslogtreecommitdiff
path: root/gdb/signals
diff options
context:
space:
mode:
authorAleksandar Ristovski <aristovski@qnx.com>2008-05-01 19:31:52 +0000
committerAleksandar Ristovski <aristovski@qnx.com>2008-05-01 19:31:52 +0000
commit1cded358ac11bda3c08ed79b99e304b3d120b301 (patch)
treeb47e91d6b2813a039a923cf8af7b6d0839676ce3 /gdb/signals
parenta0ef42744d050b642351a3974faca030269f5504 (diff)
downloadgdb-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/signals')
-rw-r--r--gdb/signals/signals.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/signals/signals.c b/gdb/signals/signals.c
index 204b8e2..9f85a98 100644
--- a/gdb/signals/signals.c
+++ b/gdb/signals/signals.c
@@ -30,6 +30,8 @@
#include <signal.h>
#endif
+struct gdbarch;
+
/* Always use __SIGRTMIN if it's available. SIGRTMIN is the lowest
_available_ realtime signal, not the lowest supported; glibc takes
several for its own use. */
@@ -831,3 +833,15 @@ _initialize_signals (void)
internal_error (__FILE__, __LINE__, "failed internal consistency check");
}
#endif
+
+int
+default_target_signal_to_host (struct gdbarch *gdbarch, enum target_signal ts)
+{
+ return target_signal_to_host (ts);
+}
+
+enum target_signal
+default_target_signal_from_host (struct gdbarch *gdbarch, int signo)
+{
+ return target_signal_from_host (signo);
+}