This is the mail archive of the
mailing list for the elfutils project.
Re: Using dwfl to enumerate frames of current thread
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Thu, 20 Aug 2015 16:46:04 +0200
- Subject: Re: Using dwfl to enumerate frames of current thread
On Thu, 2015-08-20 at 16:13 +0200, Ben Gamari wrote:
> Mark Wielaard <email@example.com> writes:
> > Could you post the binary somewhere?
> > Then I will take a look at what is going wrong.
> It can be found here (sorry for the size),
> With binutils I find,
> $ addr2line -e inplace/lib/bin/ghc-stage2 -f 0x12011b8
> If I'm interpretting gdb correctly, elfutils seems to think there is
> only one CU, which sounds like it could be the issue. By my count there
> should be over 700,
> $ readelf -e inplace/lib/bin/ghc-stage2 -w | grep -i "File Name Table (" | wc -l
Still debugging, but the debug_info and line_info seem to be parsed
correctly. The output is just slightly different between eu-readelf and
$ eu-readelf --debug-dump=info -N ./ghc-stage2 | grep "Compilation unit
at offset" | wc --lines
$ eu-readelf --debug-dump=decodedline -N ./ghc-stage2 | grep ^\ CU\ |