2008-12-31 Pedro Alves <pedro@codesourcery.com>

PR gdb/8812:
	* infrun.c (handle_command): Don't print a header or notify the
	target about signal changes if we didn't change any signal.

2008-12-31  Pedro Alves  <pedro@codesourcery.com>

	PR gdb/8812:
	* gdb.base/signal.exp: Change kfail to fail, and update PR number.
This commit is contained in:
Pedro Alves 2008-12-31 01:34:10 +00:00
parent c5d46bc6b9
commit 3a031f650c
4 changed files with 27 additions and 14 deletions

View file

@ -4639,20 +4639,22 @@ Are you sure you want to change it? ", target_signal_to_name ((enum target_signa
argv++;
}
target_notice_signals (inferior_ptid);
for (signum = 0; signum < nsigs; signum++)
if (sigs[signum])
{
target_notice_signals (inferior_ptid);
if (from_tty)
{
/* Show the results. */
sig_print_header ();
for (signum = 0; signum < nsigs; signum++)
{
if (sigs[signum])
{
sig_print_info (signum);
}
}
}
if (from_tty)
{
/* Show the results. */
sig_print_header ();
for (; signum < nsigs; signum++)
if (sigs[signum])
sig_print_info (signum);
}
break;
}
do_cleanups (old_chain);
}