Thanks for the fast response and the workaround!
Asier
On Sun, Nov 22, 2009 at 2:08 AM, Roland McGrath <roland(a)redhat.com> wrote:
Sorry, that was a stupid bug. It should be fixed in commit 888381b.
Apparently we never tested dwarf_getlocation after that change.
dwarf_getlocation_addr didn't have the same bug, and that's the only thing
systemtap uses, so we managed not to notice that I had completely broken
dwarf_getlocation. If you want to work with the broken -ldw before the
next elfutils release, you can just use dwarf_getlocation_addr in place of
dwarf_getlocation, and the PC value you pass won't actually matter.
Thanks,
Roland