Ahh that makes sense thank you.
I think this file in Delve :
https://github.com/go-delve/delve/blob/master/pkg/proc/bininfo.go does
exactly what I need if I am not wrong.
On Wednesday, 10 April 2019 21:04:49 UTC-7, Ian Lance Taylor wrote:
>
> On Wed, Apr 10, 2019 at 5:27 PM vaastav anand > wro
On Wed, Apr 10, 2019 at 5:27 PM vaastav anand wrote:
>
> > That is the bare bones of the DWARF information. That will let you
> read the DWARF info, but it won't help you map PC and SP values to
> variable names.
>
> I am not sure why this is the case. I thought along with the dwarf info, once
>
> That is the bare bones of the DWARF information. That will let you
read the DWARF info, but it won't help you map PC and SP values to
variable names.
I am not sure why this is the case. I thought along with the dwarf info,
once I have the frame information for each goroutine's stack I could
On Wed, Apr 10, 2019 at 4:34 PM vaastav anand wrote:
>
> Is the debug info exported in the binary in DWARF format?
Yes.
> And if so would this package work https://golang.org/pkg/debug/dwarf/?
That is the bare bones of the DWARF information. That will let you
read the DWARF info, but it won't
Is the debug info exported in the binary in DWARF format? And if so would
this package work https://golang.org/pkg/debug/dwarf/?
What about the global variables or the ones allocated on the heap? Are they
also not available inside the runtime either?
On Wednesday, 10 April 2019 13:28:49 UTC-7, I
On Tue, Apr 9, 2019 at 7:43 AM wrote:
>
> I have been working on a research project where I have been modifying the
> runtime such that I can control the goroutines that are scheduled as well as
> get access to the values of program variables.
> I know I can access the stack through the g struct
I have been working on a research project where I have been modifying the
runtime such that I can control the goroutines that are scheduled as well
as get access to the values of program variables.
I know I can access the stack through the g struct for a goroutine but I
was wondering if someone