aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-03-01 21:11:23 +0000
committerPedro Alves <palves@redhat.com>2012-03-01 21:11:23 +0000
commited01b82c02dfcd2b9650505045bac2ca8b3122fb (patch)
tree8c05ee36fc16d3bd1019095c88cec052ea2ed4c0 /gdb/infrun.c
parentc9b873354a17fb8e065e86cb32117524ea796375 (diff)
downloadgdb-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/infrun.c')
-rw-r--r--gdb/infrun.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 81d1e5c..e383d77 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -6445,6 +6445,15 @@ xdb_handle_command (char *args, int from_tty)
do_cleanups (old_chain);
}
+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."));
+}
+
/* Print current contents of the tables set by the handle command.
It is possible we should just be printing signals actually used
by the current target (but for things to work right when switching