FreeBSD Bugzilla – Attachment 146116 Details for
Bug 192890
[MAINTAINER] devel/gdb thread support fix on i386 FreeBSD 9.x
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix the problem
gdb.diff (text/plain), 1.00 KB, created by
luca.pizzamiglio
on 2014-08-21 15:50:55 UTC
(
hide
)
Description:
Patch to fix the problem
Filename:
MIME Type:
Creator:
luca.pizzamiglio
Created:
2014-08-21 15:50:55 UTC
Size:
1.00 KB
patch
obsolete
>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);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
luca.pizzamiglio:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 192890
: 146116