This is the mail archive of the frysk@sourceware.org mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Dwarf expertise needed


> get_addrdie() does not return the correct die:

The libdw and libdwfl functions called "addrdie" give you the CU containing
that address, as they are described to do.  It sounds like you are
expecting something different.

> The other issue is that in the test case where it works the complete 
> hierarchy of scopes is not returned. Is there a bug or what is the 
> correct way of getting the hierarchy of scopes that a die belongs to ? 
> Frysk uses dwarf_getscopes()

dwarf_getscopes is the right call to use to get specific information about
a PC address, which it sounds like you expected is what "addrdie" meant.

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=230235 is outstanding
and I have not had the chance to look into it.  It is probably related.

To test dwarf_getscopes, please run tests/addrscopes from your elfutils
build, i.e.:

	./tests/addrscopes -e executable-file 0x123 0x456 

if 0x123 and 0x456 are the PC values of interest.

Put the exact command line you used in the bug report and attach your
actual executable file (not just source).  


Thanks,
Roland


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]