24 lines
845 B
Diff
24 lines
845 B
Diff
|
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=182116
|
||
|
|
||
|
|
||
|
Index: gdb-6.5/gdb/linux-thread-db.c
|
||
|
===================================================================
|
||
|
--- gdb-6.5.orig/gdb/linux-thread-db.c 2006-08-24 02:55:24.000000000 -0300
|
||
|
+++ gdb-6.5/gdb/linux-thread-db.c 2006-08-24 02:56:16.000000000 -0300
|
||
|
@@ -939,6 +939,15 @@ thread_db_wait (ptid_t ptid, struct targ
|
||
|
|| ourstatus->kind == TARGET_WAITKIND_SIGNALLED)
|
||
|
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
|
||
|
|| ourstatus->value.sig == TARGET_SIGNAL_ILL))
|