This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: Recent changes in dwarf_getlocation
- From: Asier Aguirre <asier dot aguirre at gmail dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Sun, 22 Nov 2009 19:00:42 +0100
- Subject: Re: Recent changes in dwarf_getlocation
Thanks for the fast response and the workaround!
Asier
On Sun, Nov 22, 2009 at 2:08 AM, Roland McGrath <roland@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
>
Thanks for the fast response and the workaround!
Asier
On Sun, Nov 22, 2009 at 2:08 AM, Roland McGrath
<roland@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