summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2004-11-15 13:06:01 +0000
committerdavidxu <davidxu@FreeBSD.org>2004-11-15 13:06:01 +0000
commit509cea0ce876f8b47f86ee3a0ce40bce44982966 (patch)
treea03f9ae117b440be9934ea34096babeade2f17b5 /gnu
parent255694f7fcc31bc747caaa62a7db837cdc9899e7 (diff)
downloadFreeBSD-src-509cea0ce876f8b47f86ee3a0ce40bce44982966.zip
FreeBSD-src-509cea0ce876f8b47f86ee3a0ce40bce44982966.tar.gz
Always set current thread when activating thread debugger,
the current thread may already be added by fbsd_find_new_threads, this can result that current thread is not set correctly.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gdb/libgdb/fbsd-threads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/gdb/libgdb/fbsd-threads.c b/gnu/usr.bin/gdb/libgdb/fbsd-threads.c
index 93e019b..02b250f 100644
--- a/gnu/usr.bin/gdb/libgdb/fbsd-threads.c
+++ b/gnu/usr.bin/gdb/libgdb/fbsd-threads.c
@@ -294,8 +294,8 @@ get_current_thread ()
if (!in_thread_list (ptid))
{
add_thread (ptid);
- inferior_ptid = ptid;
}
+ inferior_ptid = ptid;
}
static void
OpenPOWER on IntegriCloud