diff options
author | Pedro Alves <palves@redhat.com> | 2012-03-01 21:11:23 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-03-01 21:11:23 +0000 |
commit | ed01b82c02dfcd2b9650505045bac2ca8b3122fb (patch) | |
tree | 8c05ee36fc16d3bd1019095c88cec052ea2ed4c0 /gdb/common | |
parent | c9b873354a17fb8e065e86cb32117524ea796375 (diff) | |
download | gdb-ed01b82c02dfcd2b9650505045bac2ca8b3122fb.zip gdb-ed01b82c02dfcd2b9650505045bac2ca8b3122fb.tar.gz gdb-ed01b82c02dfcd2b9650505045bac2ca8b3122fb.tar.bz2 |
2012-03-01 Pedro Alves <palves@redhat.com>
* common/signals.c (default_target_signal_to_host)
(default_target_signal_from_host): Move ...
* arch-utils.c: ... here.
* arch-utils.h (default_target_signal_to_host)
(default_target_signal_from_host): Declare.
* common/signals.c (target_signal_from_command): Move ...
* infrun.c: ... here.
* inferior.h (target_signal_from_command): Declare.
* target.h (target_signal_from_command)
(default_target_signal_from_host, default_target_signal_to_host):
Delete declarations.
* common/signals.c (_initialize_signals): Delete.
Diffstat (limited to 'gdb/common')
-rw-r--r-- | gdb/common/signals.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/gdb/common/signals.c b/gdb/common/signals.c index 75699db..2e82e9c 100644 --- a/gdb/common/signals.c +++ b/gdb/common/signals.c @@ -649,45 +649,3 @@ target_signal_to_host (enum target_signal oursig) else return targ_signo; } - -#ifndef GDBSERVER - -/* In some circumstances we allow a command to specify a numeric - signal. The idea is to keep these circumstances limited so that - users (and scripts) develop portable habits. For comparison, - POSIX.2 `kill' requires that 1,2,3,6,9,14, and 15 work (and using a - numeric signal at all is obsolescent. We are slightly more - lenient and allow 1-15 which should match host signal numbers on - most systems. Use of symbolic signal names is strongly encouraged. */ - -enum target_signal -target_signal_from_command (int num) -{ - if (num >= 1 && num <= 15) - return (enum target_signal) num; - error (_("Only signals 1-15 are valid as numeric signals.\n\ -Use \"info signals\" for a list of symbolic signals.")); -} - -extern initialize_file_ftype _initialize_signals; /* -Wmissing-prototype */ - -void -_initialize_signals (void) -{ - if (strcmp (signals[TARGET_SIGNAL_LAST].string, "TARGET_SIGNAL_MAGIC") != 0) - internal_error (__FILE__, __LINE__, "failed internal consistency check"); -} - -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); -} - -#endif /* ! GDBSERVER */ |