Re: [go-nuts] debug/gosym.PCToLine breaks on cgo enabled binaries

2024-03-14 Thread 'Grant Seltzer Richman' via golang-nuts
On Wednesday, March 13, 2024 at 4:37:31 PM UTC-4 Ian Lance Taylor wrote: On Wed, Mar 13, 2024 at 8:04 AM 'Grant Seltzer Richman' via golang-nuts wrote: > > I've been using the `Table.PCToLine` method to resolve program counters (extracted via bpf) into functions with their file names and li

Re: [go-nuts] debug/gosym.PCToLine breaks on cgo enabled binaries

2024-03-13 Thread Ian Lance Taylor
On Wed, Mar 13, 2024 at 8:04 AM 'Grant Seltzer Richman' via golang-nuts wrote: > > I've been using the `Table.PCToLine` method to resolve program counters > (extracted via bpf) into functions with their file names and line numbers. > > It appears that this breaks when i'm testing it on a binary t

[go-nuts] debug/gosym.PCToLine breaks on cgo enabled binaries

2024-03-13 Thread 'Grant Seltzer Richman' via golang-nuts
I've been using the `Table.PCToLine` method to resolve program counters (extracted via bpf) into functions with their file names and line numbers. It appears that this breaks when i'm testing it on a binary that has cgo enabled. It does not fix it by compiling the binary statically. Another iss