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:
Pedro Alves
2012-03-01 21:11:23 +00:00
parent c9b873354a
commit ed01b82c02
7 changed files with 53 additions and 52 deletions

View File

@@ -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