* linux-nat.c (linux_nat_wait): Do not short-cut reporting
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 5 May 2006 23:46:58 +0000 (23:46 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 5 May 2006 23:46:58 +0000 (23:46 +0000)
of 'uninteresting' signals when single-stepping.

gdb/ChangeLog
gdb/linux-nat.c

index e787d0d963fb7f3fbeec69c214010af658b9780b..3d581b7668c4743acec51cec5f1ee1a5c9693eb9 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-05  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * linux-nat.c (linux_nat_wait): Do not short-cut reporting
+       of 'uninteresting' signals when single-stepping.
+
 2006-05-05  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * MAINTAINERS: Move NEWS to the documentation entry.
index 31e46d6395602ca9f05793cd3fe50ba06f81d20f..3cee912250fdf48967b685b397bb96c73941b152 100644 (file)
@@ -2155,7 +2155,10 @@ retry:
     {
       int signo = target_signal_from_host (WSTOPSIG (status));
 
-      if (signal_stop_state (signo) == 0
+      /* If we get a signal while single-stepping, we may need special
+        care, e.g. to skip the signal handler.  Defer to common code.  */
+      if (!lp->step
+         && signal_stop_state (signo) == 0
          && signal_print_state (signo) == 0
          && signal_pass_state (signo) == 1)
        {