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

@ -1,3 +1,9 @@
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-29 Joel Brobecker <brobecker@adacore.com>
* valops.c (find_method_list): Minor reformatting in comment.

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);
}

View File

@ -1,3 +1,8 @@
2008-12-31 Pedro Alves <pedro@codesourcery.com>
PR gdb/8812:
* gdb.base/signal.exp: Change kfail to fail, and update PR number.
2008-12-29 Pedro Alves <pedro@codesourcery.com>
PR gdb/7536:

View File

@ -248,7 +248,7 @@ The program being debugged stopped while in a function called from GDB.*" \
gdb_test_multiple "n" "$test" {
-re "Not confirmed, unchanged.*Signal.*$gdb_prompt $" {
# "Signal ..." should not be in the output.
kfail gdb/1707 "$test"
fail gdb/8812 "$test"
}
-re "Not confirmed, unchanged.*$gdb_prompt $" {
pass "$test"