diff options
author | Pedro Alves <palves@redhat.com> | 2011-10-11 14:58:21 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-10-11 14:58:21 +0000 |
commit | 3c4d7e1201c0e8fb4b9a3e4f297c5b4a18bf38db (patch) | |
tree | 9274ff9992a7c9c4424d97d1c442106c1719c650 /gdb/linux-nat.c | |
parent | ea23808b14438001e2c481a510ca5acb886ca2d4 (diff) | |
download | gdb-3c4d7e1201c0e8fb4b9a3e4f297c5b4a18bf38db.zip gdb-3c4d7e1201c0e8fb4b9a3e4f297c5b4a18bf38db.tar.gz gdb-3c4d7e1201c0e8fb4b9a3e4f297c5b4a18bf38db.tar.bz2 |
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.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 5c80114..9a0d9e6 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); |