From: Pedro Alves Date: Wed, 31 Dec 2008 01:34:10 +0000 (+0000) Subject: 2008-12-31 Pedro Alves X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3a031f650c8eea9f5b38fce3dc0b0c4f41cd358e;p=binutils-gdb.git 2008-12-31 Pedro Alves 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 PR gdb/8812: * gdb.base/signal.exp: Change kfail to fail, and update PR number. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a8800a66d88..a9f0b10c47a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2008-12-31 Pedro Alves + + 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 * valops.c (find_method_list): Minor reformatting in comment. diff --git a/gdb/infrun.c b/gdb/infrun.c index eb2528ce7b9..a85d7697a47 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -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); } diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 6238652daab..5dab6d7dfc0 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-12-31 Pedro Alves + + PR gdb/8812: + * gdb.base/signal.exp: Change kfail to fail, and update PR number. + 2008-12-29 Pedro Alves PR gdb/7536: diff --git a/gdb/testsuite/gdb.base/signals.exp b/gdb/testsuite/gdb.base/signals.exp index 1037fccb5d2..c76307557bd 100644 --- a/gdb/testsuite/gdb.base/signals.exp +++ b/gdb/testsuite/gdb.base/signals.exp @@ -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"