f517af0a0a
- Do not step into the PPC solib trampolines (BZ 200533). - Fix exec() from threaded program, partial CVS backport (BZ 182116). - Fix occasional failure to load shared libraries (BZ 146810). - Bugfix object names completion (fixes Patch116, BZ 193763). - Avoid crash of 'info threads' if stale threads exist (BZ 195429). - Handle corrupted or missing location list information (BZ 196439).
28 lines
900 B
Diff
28 lines
900 B
Diff
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=182116
|
|
|
|
|
|
Index: linux-thread-db.c
|
|
===================================================================
|
|
RCS file: /cvs/src/src/gdb/linux-thread-db.c,v
|
|
retrieving revision 1.17
|
|
retrieving revision 1.18
|
|
diff -u -p -r1.17 -r1.18
|
|
--- gdb/linux-thread-db.c 18 Jul 2006 22:53:20 -0000 1.17
|
|
+++ gdb/linux-thread-db.c 24 Jul 2006 18:57:32 -0000 1.18
|
|
@@ -875,6 +875,15 @@ thread_db_wait (ptid_t ptid, struct targ
|
|
if (ourstatus->kind == TARGET_WAITKIND_EXITED)
|
|
return pid_to_ptid (-1);
|
|
|
|
+ if (ourstatus->kind == TARGET_WAITKIND_EXECD)
|
|
+ {
|
|
+ remove_thread_event_breakpoints ();
|
|
+ unpush_target (&thread_db_ops);
|
|
+ using_thread_db = 0;
|
|
+
|
|
+ return pid_to_ptid (GET_PID (ptid));
|
|
+ }
|
|
+
|
|
if (ourstatus->kind == TARGET_WAITKIND_STOPPED
|
|
&& ourstatus->value.sig == TARGET_SIGNAL_TRAP)
|
|
/* Check for a thread event. */
|