diff options
Diffstat (limited to 'gdb/gdbserver/thread-db.c')
-rw-r--r-- | gdb/gdbserver/thread-db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/thread-db.c b/gdb/gdbserver/thread-db.c index 4a59df6..9d2041d 100644 --- a/gdb/gdbserver/thread-db.c +++ b/gdb/gdbserver/thread-db.c @@ -406,7 +406,7 @@ static void thread_db_find_new_threads (void) { td_err_e err; - ptid_t ptid = ((struct inferior_list_entry *) current_inferior)->id; + ptid_t ptid = current_ptid; struct thread_db *thread_db = current_process ()->private->thread_db; int loop, iteration; |