Index: Makefile =================================================================== --- Makefile (revision 365466) +++ Makefile (working copy) @@ -3,7 +3,7 @@ PORTNAME= gdb PORTVERSION= 7.8 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= GNU Index: files/fbsd-threads.c =================================================================== --- files/fbsd-threads.c (revision 365466) +++ files/fbsd-threads.c (working copy) @@ -325,6 +325,11 @@ lwp = get_current_lwp (proc_handle.pid); tmp = BUILD_LWP (lwp, proc_handle.pid); ptid = thread_from_lwp (tmp, &th, &ti); + if (in_thread_list (inferior_ptid) ) + { + struct thread_info * ti_inf = inferior_thread(); + ti_inf->ptid = ptid; + } if (!in_thread_list (ptid)) { attach_thread (ptid, &th, &ti, 1); @@ -439,7 +444,6 @@ fbsd_thread_activate (void) { fbsd_thread_active = 1; - init_thread_list(); if (target_has_execution) enable_thread_event_reporting (); fbsd_thread_find_new_threads (NULL);