FreeBSD Bugzilla – Attachment 158261 Details for
Bug 201291
devel/gdb: Incorrect thread names in core file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to avoid sysctl when inferior is a core file
gdb_core_threadname.diff (text/plain), 416 bytes, created by
Eric Badger
on 2015-07-02 19:22:30 UTC
(
hide
)
Description:
Patch to avoid sysctl when inferior is a core file
Filename:
MIME Type:
Creator:
Eric Badger
Created:
2015-07-02 19:22:30 UTC
Size:
416 bytes
patch
obsolete
>diff --git files/fbsd-threads.c files/fbsd-threads.c >index ee51d96..56647e4 100644 >--- files/fbsd-threads.c >+++ files/fbsd-threads.c >@@ -1096,6 +1096,9 @@ fbsd_find_lwp_name(long lwpid, struct private_thread_info *info) > int pid = inferior_ptid.pid; > size_t len = 0; > >+ if (!target_has_execution) >+ return; >+ > name[0] = CTL_KERN; > name[1] = KERN_PROC; > name[2] = KERN_PROC_PID | KERN_PROC_INC_THREAD;
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:
koobs
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 201291
: 158261