summaryrefslogtreecommitdiffstats
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-10-11 14:58:21 +0000
committerPedro Alves <palves@redhat.com>2011-10-11 14:58:21 +0000
commit3c4d7e1201c0e8fb4b9a3e4f297c5b4a18bf38db (patch)
tree9274ff9992a7c9c4424d97d1c442106c1719c650 /gdb/linux-nat.c
parentea23808b14438001e2c481a510ca5acb886ca2d4 (diff)
downloadppe42-binutils-3c4d7e1201c0e8fb4b9a3e4f297c5b4a18bf38db.tar.gz
ppe42-binutils-3c4d7e1201c0e8fb4b9a3e4f297c5b4a18bf38db.zip
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.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 5c801141ab..9a0d9e6512 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -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);
OpenPOWER on IntegriCloud