diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-07-24 18:57:32 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-07-24 18:57:32 +0000 |
commit | 3f64f7b1c773929215cd1284c891f371e4fc625f (patch) | |
tree | bb5f78f6160cd58386e2dd50a776d206651eb4f3 /gdb/linux-thread-db.c | |
parent | 6aec2e11e511d46bd65e1d608254bc18ef9f5ea9 (diff) | |
download | gdb-3f64f7b1c773929215cd1284c891f371e4fc625f.zip gdb-3f64f7b1c773929215cd1284c891f371e4fc625f.tar.gz gdb-3f64f7b1c773929215cd1284c891f371e4fc625f.tar.bz2 |
* linux-thread-db.c (thread_db_wait): Remove libthread_db
after exec events.
Diffstat (limited to 'gdb/linux-thread-db.c')
-rw-r--r-- | gdb/linux-thread-db.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index c49c895..d91a894 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -875,6 +875,15 @@ thread_db_wait (ptid_t ptid, struct target_waitstatus *ourstatus) 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. */ |