Re: Golang binary dwarf

2021-02-07 Thread Manoj Kumar via Elfutils-devel
Wrapecho starts a local server on port 1323. It provides handlers for url localhost:1323/ and localhost:1323/cat. The handlers simply execute some user defined code. Sure I will contact th golang team. Thanks for providing the details. On Sunday, 7 February, 2021, 10:58:26 pm IST, Mark Wiela

Re: Golang binary dwarf

2021-02-07 Thread Mark Wielaard
On Sun, Feb 07, 2021 at 05:16:27PM +, Manoj Kumar wrote: > Please confirm if you have got the binaries. > I got failure message for elfutils-devel@sourceware.org I got them, but they were really big: $ du -h echobin.tar.gz wrapecho* 7.7Mechobin.tar.gz 11M wrapecho_linkshared.txt 7.4M

Re: Golang binary dwarf

2021-02-07 Thread Manoj Kumar via Elfutils-devel
Please confirm if you have got the binaries.I got failure message for elfutils-devel@sourceware.org On Sunday, 7 February, 2021, 10:42:47 pm IST, Manoj Kumar wrote: Please get the attached binaries. Please remove txt extension. md5sum wrapecho 2960d6232f818c4df8c9a8a30c4dd6d9md5sum w

Re: Golang binary dwarf

2021-02-07 Thread Manoj Kumar via Elfutils-devel
Sure. I will upload them in an hour. On Sunday, 7 February, 2021, 09:47:07 pm IST, Mark Wielaard wrote: Hi Manoj, On Sun, Feb 07, 2021 at 04:10:20PM +, Manoj Kumar wrote: > I can upload the go binaries. Dyninst libraries have huge size so > can't send those. Please let me know shou

Re: Golang binary dwarf

2021-02-07 Thread Mark Wielaard
Hi Manoj, On Sun, Feb 07, 2021 at 04:10:20PM +, Manoj Kumar wrote: > I can upload the go binaries. Dyninst libraries have huge size so > can't send those. Please let me know should I upload the go > binaries? Program OutputProgram without linkshared option is able > to find the arguments of a

Re: Golang binary dwarf

2021-02-07 Thread Manoj Kumar via Elfutils-devel
Hi, I can upload the go binaries. Dyninst libraries have huge size so can't send those. Please let me know should I upload the go binaries? Program OutputProgram without linkshared option is able to find the arguments of any function and displays number of arguments with their names but a progra

Re: Golang binary dwarf

2021-02-07 Thread Mark Wielaard
Hi, On Sun, 2021-02-07 at 14:54 +, Manoj Kumar wrote: > Apologies for replying late. The issue can be reproduced on Ubuntu. > Please get the attached files & copy to some folder. If golang and > Dyninst 10.2.1 version are installed on system then please follow the > below steps: > 1. export P

Re: Golang binary dwarf

2021-02-07 Thread Manoj Kumar via Elfutils-devel
Hi, Apologies for replying late.  The issue can be reproduced on Ubuntu. Please get the attached files & copy to some folder. If golang and Dyninst 10.2.1 version are installed on system then please follow the below steps: 1. export PATH_TO_DYNINST_LIB= makeThis will create c++ binary testfile 2.

Re: Golang binary dwarf

2021-02-07 Thread Florian Weimer via Elfutils-devel
* Mark Wielaard: > Hi Manoj, > > On Sat, 2021-02-06 at 07:03 +, Manoj Kumar via Elfutils-devel > wrote: >> Hi,Using dyninst, I am trying to access local variables and arguments >> of a function which is part of a go binary.To get local variables, >> dyninst uses libdw to find all the modules.

Re: Golang binary dwarf

2021-02-06 Thread Mark Wielaard
Hi Manoj, On Sat, 2021-02-06 at 07:03 +, Manoj Kumar via Elfutils-devel wrote: > Hi,Using dyninst, I am trying to access local variables and arguments > of a function which is part of a go binary.To get local variables, > dyninst uses libdw to find all the modules. It uses dwarf_nextcu > funct

Golang binary dwarf

2021-02-05 Thread Manoj Kumar via Elfutils-devel
Hi,Using dyninst, I am trying to access local variables and arguments of a function which is part of a go binary.To get local variables, dyninst uses libdw to find all the modules. It uses dwarf_nextcu function of libdw to find all the modules of binary.When I compile a go binary using "go build