Bug 273568 - lang/go [Patch] to ease debugging of ports utilizing go
Summary: lang/go [Patch] to ease debugging of ports utilizing go
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Golang Team (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-04 18:50 UTC by Adam Labus
Modified: 2024-03-11 10:34 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (go)


Attachments
a diff of the changes (254 bytes, patch)
2023-09-04 18:50 UTC, Adam Labus
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.