1 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=182116
4 Index: gdb-6.5/gdb/linux-thread-db.c
5 ===================================================================
6 --- gdb-6.5.orig/gdb/linux-thread-db.c 2006-08-24 02:55:24.000000000 -0300
7 +++ gdb-6.5/gdb/linux-thread-db.c 2006-08-24 02:56:16.000000000 -0300
8 @@ -939,6 +939,15 @@ thread_db_wait (ptid_t ptid, struct targ
9 || ourstatus->kind == TARGET_WAITKIND_SIGNALLED)
10 return pid_to_ptid (-1);
12 + if (ourstatus->kind == TARGET_WAITKIND_EXECD)
14 + remove_thread_event_breakpoints ();
15 + unpush_target (&thread_db_ops);
16 + using_thread_db = 0;
18 + return pid_to_ptid (GET_PID (ptid));
21 if (ourstatus->kind == TARGET_WAITKIND_STOPPED
22 && (ourstatus->value.sig == TARGET_SIGNAL_TRAP
23 || ourstatus->value.sig == TARGET_SIGNAL_ILL))