diff options
author | davidxu <davidxu@FreeBSD.org> | 2004-11-15 13:06:01 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2004-11-15 13:06:01 +0000 |
commit | 509cea0ce876f8b47f86ee3a0ce40bce44982966 (patch) | |
tree | a03f9ae117b440be9934ea34096babeade2f17b5 /gnu/usr.bin | |
parent | 255694f7fcc31bc747caaa62a7db837cdc9899e7 (diff) | |
download | FreeBSD-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/usr.bin')
-rw-r--r-- | gnu/usr.bin/gdb/libgdb/fbsd-threads.c | 2 |
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 |