GNU Binutils with patches for OS216
Revision | 3f64f7b1c773929215cd1284c891f371e4fc625f (tree) |
---|---|
Zeit | 2006-07-25 03:57:32 |
Autor | Daniel Jacobowitz <drow@fals...> |
Commiter | Daniel Jacobowitz |
* linux-thread-db.c (thread_db_wait): Remove libthread_db
after exec events.
@@ -1,3 +1,9 @@ | ||
1 | +2006-07-24 Jan Kratochvil <jan.kratochvil@redhat.com> | |
2 | + Daniel Jacobowitz <dan@codesourcery.com> | |
3 | + | |
4 | + * linux-thread-db.c (thread_db_wait): Remove libthread_db | |
5 | + after exec events. | |
6 | + | |
1 | 7 | 2006-07-24 Daniel Jacobowitz <dan@codesourcery.com> |
2 | 8 | |
3 | 9 | * NEWS: Mention Windows cross debugging support. |
@@ -875,6 +875,15 @@ thread_db_wait (ptid_t ptid, struct target_waitstatus *ourstatus) | ||
875 | 875 | if (ourstatus->kind == TARGET_WAITKIND_EXITED) |
876 | 876 | return pid_to_ptid (-1); |
877 | 877 | |
878 | + if (ourstatus->kind == TARGET_WAITKIND_EXECD) | |
879 | + { | |
880 | + remove_thread_event_breakpoints (); | |
881 | + unpush_target (&thread_db_ops); | |
882 | + using_thread_db = 0; | |
883 | + | |
884 | + return pid_to_ptid (GET_PID (ptid)); | |
885 | + } | |
886 | + | |
878 | 887 | if (ourstatus->kind == TARGET_WAITKIND_STOPPED |
879 | 888 | && ourstatus->value.sig == TARGET_SIGNAL_TRAP) |
880 | 889 | /* Check for a thread event. */ |