2011-10-11 Pedro Alves <pedro@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Tue, 11 Oct 2011 14:58:21 +0000 (14:58 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 11 Oct 2011 14:58:21 +0000 (14:58 +0000)
* linux-nat.c (linux_handle_extended_wait): Always dump both the
parent and child's pids as soon as we detect a clone event.
Adjust another debug message.

gdb/ChangeLog
gdb/linux-nat.c

index 3aedc62eea105d33bba74bd11484d963ced827c1..8bdc21ffd8c52cac1ddd307575126fd5c8892bdb 100644 (file)
@@ -1,3 +1,9 @@
+2011-10-11  Pedro Alves  <pedro@codesourcery.com>
+
+       * linux-nat.c (linux_handle_extended_wait): Always dump both the
+       parent and child's pids as soon as we detect a clone event.
+       Adjust another debug message.
+
 2011-10-11  Pedro Alves  <pedro@codesourcery.com>
 
        * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
index 5c801141aba646f2900c56be42688e7b31731f5e..9a0d9e6512a1e9d89c3ed94352a4a9ff41c8dcab 100644 (file)
@@ -2218,6 +2218,12 @@ linux_handle_extended_wait (struct lwp_info *lp, int status,
 
          ourstatus->kind = TARGET_WAITKIND_IGNORE;
 
+         if (debug_linux_nat)
+           fprintf_unfiltered (gdb_stdlog,
+                               "LHEW: Got clone event "
+                               "from LWP %d, new child is LWP %ld\n",
+                               pid, new_pid);
+
          new_lp = add_lwp (BUILD_LWP (new_pid, GET_PID (lp->ptid)));
          new_lp->cloned = 1;
          new_lp->stopped = 1;
@@ -2322,9 +2328,7 @@ linux_handle_extended_wait (struct lwp_info *lp, int status,
 
          if (debug_linux_nat)
            fprintf_unfiltered (gdb_stdlog,
-                               "LHEW: Got clone event "
-                               "from LWP %ld, resuming\n",
-                               GET_LWP (lp->ptid));
+                               "LHEW: resuming parent LWP %d\n", pid);
          linux_ops->to_resume (linux_ops, pid_to_ptid (GET_LWP (lp->ptid)),
                                0, TARGET_SIGNAL_0);
 
This page took 0.03062 seconds and 4 git commands to generate.