2008-12-31 Pedro Alves <pedro@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Wed, 31 Dec 2008 01:34:10 +0000 (01:34 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 31 Dec 2008 01:34:10 +0000 (01:34 +0000)
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.

gdb/ChangeLog
gdb/infrun.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/signals.exp

index a8800a66d880c9961fd84bf8b225b1b7b0c19604..a9f0b10c47a895d4142a0e49bfcd7236552066c4 100644 (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.
index eb2528ce7b9d771bf431f2b5f13185396645ddf0..a85d7697a47d2dbd9316aa679d59dd898edfd71d 100644 (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);
 }
index 6238652daabafcbb523a47575c63341567c906af..5dab6d7dfc0fb8c0ce7cb370ae5b94b2641d9e0a 100644 (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:
index 1037fccb5d2fe667ec0f479a98fdf94c19cc2342..c76307557bdaed49b9fc9bebfa36d0910dab12ac 100644 (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"