Re: Using dwarf_getfuncs to get function from object stored in memory

2021-08-23 Thread Jeff Lin via Elfutils-devel
Hi Mark, I tracked down the issue to the copy in memory was actually different. However, because dwarf_begin_elf was still providing the offset to the top cus, I did not suspect that was the issue. Dwarf_getfuncs did return -1, but I did not look at dwarf_errmsg. After I ensured the copy in m

Re: Using dwarf_getfuncs to get function from object stored in memory

2021-08-23 Thread Mark Wielaard
Hi Jeff, On Tue, Aug 17, 2021 at 03:40:08AM +, Jeff Lin via Elfutils-devel wrote: > I’ve written code to extract function from a shared object with > dwarf_begin api that finds the dwarf objects with the file > descriptor using dwarf_getfuncs. However, when I tried to parse the > same object

Using dwarf_getfuncs to get function from object stored in memory

2021-08-16 Thread Jeff Lin via Elfutils-devel
Hi, I’ve written code to extract function from a shared object with dwarf_begin api that finds the dwarf objects with the file descriptor using dwarf_getfuncs. However, when I tried to parse the same object that is loaded into memory first, dwarf_getfuncs is not able to get the function. In the