Re: [go-nuts] List of source code files of a Go binary

2025-01-01 Thread Tharaneedharan Vilwanathan
Hi Def, Thanks for all the details. I will try these options. Regards Dharani On Wed, Jan 1, 2025 at 12:42 AM Def Ceb wrote: > There are two places where this information can come from: the pclntab, > and DWARF debug information. > > The pclntab has a mapping from program counter locations to

Re: [go-nuts] List of source code files of a Go binary

2025-01-01 Thread Def Ceb
There are two places where this information can come from: the pclntab, and DWARF debug information. The pclntab has a mapping from program counter locations to filenames and line numbers, which makes stack traces more useful. Files which don't contain any code, only things like type definition