]> git.pld-linux.org Git - packages/gdb.git/blame - gdb-6.3-bz182116-exec-from-pthread.patch
- update to gdb-7.0-7.fc12.src.rpm; but leave cactus patches as these seem newer
[packages/gdb.git] / gdb-6.3-bz182116-exec-from-pthread.patch
CommitLineData
ab050a48
BZ
1https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=182116
2
3
4Index: 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);
11
12+ if (ourstatus->kind == TARGET_WAITKIND_EXECD)
13+ {
14+ remove_thread_event_breakpoints ();
15+ unpush_target (&thread_db_ops);
16+ using_thread_db = 0;
17+
18+ return pid_to_ptid (GET_PID (ptid));
19+ }
20+
21 if (ourstatus->kind == TARGET_WAITKIND_STOPPED
22 && (ourstatus->value.sig == TARGET_SIGNAL_TRAP
23 || ourstatus->value.sig == TARGET_SIGNAL_ILL))
This page took 0.271288 seconds and 4 git commands to generate.