OSDN Git Service

* linux-nat.c (linux_nat_wait): Do not short-cut reporting
authoruweigand <uweigand>
Fri, 5 May 2006 23:46:58 +0000 (23:46 +0000)
committeruweigand <uweigand>
Fri, 5 May 2006 23:46:58 +0000 (23:46 +0000)
of 'uninteresting' signals when single-stepping.

gdb/ChangeLog
gdb/linux-nat.c

index e787d0d..3d581b7 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 31e46d6..3cee912 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)
        {