FreeBSD Bugzilla – Attachment 157220 Details for
Bug 200001
devel/gdb: gdb 7.9 crashes on certain core files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
get_current_thread before thread enumeration
get_current_thread.patch (text/plain), 1.03 KB, created by
Eric Badger
on 2015-05-28 15:33:52 UTC
(
hide
)
Description:
get_current_thread before thread enumeration
Filename:
MIME Type:
Creator:
Eric Badger
Created:
2015-05-28 15:33:52 UTC
Size:
1.03 KB
patch
obsolete
>diff --git files/fbsd-threads.c files/fbsd-threads.c >index 68ebfad..602dcf9 100644 >--- files/fbsd-threads.c >+++ files/fbsd-threads.c >@@ -322,8 +322,16 @@ get_current_thread (void) > ptid = thread_from_lwp (tmp, &th, &ti); > if (in_thread_list (inferior_ptid) ) > { >+ struct private_thread_info *private; > struct thread_info * ti_inf = inferior_thread(); > ti_inf->ptid = ptid; >+ /* Allocate private info struct. */ >+ private = xmalloc(sizeof(struct private_thread_info)); >+ gdb_assert(private != NULL); >+ // Thread name is assigned when printed >+ memset(private, 0, sizeof(struct private_thread_info)); >+ ti_inf->private = private; >+ ti_inf->private_dtor = free_private_thread_info; > } > if (!in_thread_list (ptid)) > { >@@ -441,8 +449,8 @@ fbsd_thread_activate (void) > fbsd_thread_active = 1; > if (target_has_execution) > enable_thread_event_reporting (); >- fbsd_thread_update_thread_list (NULL); > get_current_thread (); >+ fbsd_thread_update_thread_list (NULL); > } > > static void
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
Actions:
View
|
Diff
Attachments on
bug 200001
:
156437
|
156468
|
156667
| 157220