Bug 273568

Summary: lang/go [Patch] to ease debugging of ports utilizing go
Product: Ports & Packages Reporter: Adam Labus <adam.labuznik>
Component: Individual Port(s)Assignee: Golang Team (Nobody) <go>
Status: New ---    
Severity: Affects Only Me CC: bofh
Priority: --- Flags: bugzilla: maintainer-feedback? (go)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
a diff of the changes none

Description Adam Labus 2023-09-04 18:50:45 UTC
Created attachment 244636 [details]
a diff of the changes

Hi,
I recently needed to debug sysutils/docker (with gdb) utilizing the WITH_DEBUG_PORTS variable and I noticed some variables got "optimized out". In the attachment is a patch (diff for Mk/Uses/go.mk) that fixes just that.
The solution is based on the "Introduction" section here: https://go.dev/doc/gdb

Thanks!
Comment 1 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2024-03-11 10:34:23 UTC
Again git formatted patches please. Or git diffs.