* linux-nat.c (wait_lwp): Add debugging printf.
authorDoug Evans <xdje42@gmail.com>
Sat, 13 Sep 2014 23:00:13 +0000 (16:00 -0700)
committerDoug Evans <xdje42@gmail.com>
Sat, 13 Sep 2014 23:00:13 +0000 (16:00 -0700)
(linux_nat_wait_1): Ditto.

gdb/ChangeLog
gdb/linux-nat.c

index 0b9e140bb82a9b4e9704d4b4f850628466bf4b73..6c442eb69a5547039da3f42edf1ff8e50e6ca15d 100644 (file)
@@ -1,3 +1,8 @@
+2014-09-13  Doug Evans  <xdje42@gmail.com>
+
+       * linux-nat.c (wait_lwp): Add debugging printf.
+       (linux_nat_wait_1): Ditto.
+
 2014-09-12  Pedro Alves  <palves@redhat.com>
 
        * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
index 0898442f6d36612c13f8e4f2f2cc7f9990607bab..557c84b4d53cb904e0bb9905d63444a28eaba3ad 100644 (file)
@@ -2311,6 +2311,8 @@ wait_lwp (struct lwp_info *lp)
         again before it gets to sigsuspend so we can safely let the handlers
         get executed here.  */
 
+      if (debug_linux_nat)
+       fprintf_unfiltered (gdb_stdlog, "WL: about to sigsuspend\n");
       sigsuspend (&suspend_mask);
     }
 
@@ -3441,6 +3443,8 @@ retry:
       gdb_assert (lp == NULL);
 
       /* Block until we get an event reported with SIGCHLD.  */
+      if (debug_linux_nat)
+       fprintf_unfiltered (gdb_stdlog, "LNW: about to sigsuspend\n");
       sigsuspend (&suspend_mask);
     }