[PATCH] Introduce dwfl_module_getsym_info and dwfl_module_addrinfo.

Mark Wielaard mjw at redhat.com
Wed Dec 18 10:41:56 UTC 2013


On Sat, 2013-12-14 at 23:59 +0100, Mark Wielaard wrote:
> Extra testcases were added for both addr2line and the dwflsyms testscase.

I added some more tests based on the already existing dwflsyms testcases
for separate debuginfo, minisymtab and prelinked files, but now
generated on ppc64. Which revealed a couple of corner case issues. In
particular when retrying to match the (resolved) value in
dwfl_module_addrinfo we need to first check the address is actually
larger than the one we are looking for. And we needed to keep better
track of the elf file the symbol is defined in, which we always want to
return to the user if requested, but we possibly want to check the
address against the main elf file to check the section matches. For this
last issue a resolved flag was introduced.

Besides these fixes, a rebase on master, a NEWS update and the new tests
the patch is the same as the previous one. (Also on mjw/opd branch.)

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libdwfl-Introduce-dwfl_module_getsym_info-and-dwfl_m.patch
Type: text/x-patch
Size: 188432 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/elfutils-devel/attachments/20131218/0d3be195/attachment-0001.bin>


More information about the elfutils-devel mailing list