diff options
author | Pedro Alves <palves@redhat.com> | 2009-05-27 19:44:53 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-05-27 19:44:53 +0000 |
commit | a75724bceb9e90bfb5ee80916cfcd8f2b87041f4 (patch) | |
tree | 900cf9ca60689dc336743c5d75e80f5a9b2f78b0 /gdb/linux-nat.c | |
parent | 05056a8d5b72672948f507978c7ce1e2897d30be (diff) | |
download | gdb-a75724bceb9e90bfb5ee80916cfcd8f2b87041f4.zip gdb-a75724bceb9e90bfb5ee80916cfcd8f2b87041f4.tar.gz gdb-a75724bceb9e90bfb5ee80916cfcd8f2b87041f4.tar.bz2 |
gdb/
* infrun.c (follow_exec): Clear the stop_requested flag.
* linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
Add debug output.
gdb/testsuite/
* gdb.mi/nsthrexec.c, gdb.mi/mi-nsthrexec.exp: New.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index c3cce49..edb4019 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -1892,6 +1892,11 @@ linux_handle_extended_wait (struct lwp_info *lp, int status, if (event == PTRACE_EVENT_EXEC) { + if (debug_linux_nat) + fprintf_unfiltered (gdb_stdlog, + "LHEW: Got exec event from LWP %ld\n", + GET_LWP (lp->ptid)); + ourstatus->kind = TARGET_WAITKIND_EXECD; ourstatus->value.execd_pathname = xstrdup (linux_child_pid_to_exec_file (pid)); |