* linux-thread-db.c (thread_db_wait): Don't trim event ptid.

testsuite/
	* gdb.threads/execl.c, gdb.threads/execl1.c,
	gdb.threads/execl.exp: New tests.
This commit is contained in:
Pedro Alves 2008-06-05 21:03:59 +00:00
parent 2e618c13af
commit 49fd4a422b
6 changed files with 169 additions and 1 deletions

View file

@ -838,7 +838,7 @@ thread_db_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
unpush_target (&thread_db_ops);
using_thread_db = 0;
return pid_to_ptid (GET_PID (ptid));
return ptid;
}
/* If we do not know about the main thread yet, this would be a good time to