mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 02:20:51 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user