diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 65354bff9b..03ae010e86 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2015-12-10 Antoine Tremblay + + * linux-thread-db.c (find_new_threads_callback): Use record_thread. + 2015-12-10 Antoine Tremblay * breakpoint.c (remove_thread_event_breakpoints): Remove. diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 8a80ca3168..4e51c74803 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -1226,7 +1226,7 @@ find_new_threads_callback (const td_thrhandle_t *th_p, void *data) ptid = ptid_build (info->pid, ti.ti_lid, 0); tp = find_thread_ptid (ptid); if (tp == NULL || tp->priv == NULL) - thread_from_lwp (ptid); + record_thread (info, tp, ptid, th_p, &ti); return 0; }