diff options
author | Pedro Alves <palves@redhat.com> | 2008-12-31 01:34:10 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-12-31 01:34:10 +0000 |
commit | 3a031f650c8eea9f5b38fce3dc0b0c4f41cd358e (patch) | |
tree | 4eadb500393dfd9e5fbb66ca09d7bc29d355d294 | |
parent | c5d46bc6b9f2de4cf88b9379385cdae1b8f4e4d1 (diff) | |
download | gdb-3a031f650c8eea9f5b38fce3dc0b0c4f41cd358e.zip gdb-3a031f650c8eea9f5b38fce3dc0b0c4f41cd358e.tar.gz gdb-3a031f650c8eea9f5b38fce3dc0b0c4f41cd358e.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/infrun.c | 28 | ||||
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/signals.exp | 2 |
4 files changed, 27 insertions, 14 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a8800a6..a9f0b10 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/infrun.c b/gdb/infrun.c index eb2528c..a85d769 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 6238652..5dab6d7 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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: diff --git a/gdb/testsuite/gdb.base/signals.exp b/gdb/testsuite/gdb.base/signals.exp index 1037fcc..c763075 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" |