This is the mail archive of the
mailing list for the elfutils project.
Re: Compilation Unit name
- From: Josh Stone <jistone at redhat dot com>
- To: SASHA NICOLAS DA ROCHA PINHEIRO <darochapinhe at wisc dot edu>, "elfutils-devel at sourceware dot org" <elfutils-devel at sourceware dot org>
- Date: Thu, 16 Mar 2017 17:29:12 -0700
- Subject: Re: Compilation Unit name
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jistone at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 013C3C057FA9
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 013C3C057FA9
- References: <BN3PR0601MB134557C258B4A3CCF22ABACDA6260@BN3PR0601MB1345.namprd06.prod.outlook.com> <firstname.lastname@example.org> <BN3PR0601MB13452A525FF7EB29DC862A90A6260@BN3PR0601MB1345.namprd06.prod.outlook.com>
Stick to plain text, not HTML, if you want to reach the list.
On 03/16/2017 03:44 PM, SASHA NICOLAS DA ROCHA PINHEIRO wrote:
> I had that before, and it didn't work, then I empirically changed to
> next_cu_off because it contained the same offset I was supposed to get
> when I compared to the libdwarf execution.
What you have called cu_die_off is *not* a die offset! In libdwarf.h
that argument is called next_cu_header_offset, which is why it has the
same value as the next_cu_off you're getting from libdw.
> We already discarded the option of using dwarf_offdie_types since
> previously, with libdwarf, it was passed true to:
That's fine and correct. You shouldn't use dwarf_offdie_types now, I
was trying to preempt a future problem. Sorry for adding confusion.