public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mjw@redhat.com>
To: elfutils-devel@lists.fedorahosted.org
Subject: Re: Using dwfl to enumerate frames of current thread
Date: Sat, 22 Aug 2015 00:53:35 +0200	[thread overview]
Message-ID: <20150821225335.GJ1068@blokker.redhat.com> (raw)
In-Reply-To: 8737zc8v7h.fsf@smart-cactus.org

[-- Attachment #1: Type: text/plain, Size: 1275 bytes --]

On Fri, Aug 21, 2015 at 06:25:38PM +0200, Ben Gamari wrote:
> Mark Wielaard <mjw@redhat.com> writes:
> 
> > And this is the problem. Sorry. I should have realized earlier.
> > We use the .debug_aranges to get a quick index of the CUs and which
> > address ranges they cover. In the case that there is no .debug_aranges
> > we could do a full scan of all CUs. But that is somewhat inefficient,
> > since no .debug_aranges could also mean that there really are no
> > CUs with address scope DIEs (however that is probably unlikely). But
> > if there is a .debug_aranges then we do assume it is complete. I am
> > thinking whether we should still scan all CUs anyway if we are
> > looking for an address that is really inside a module. But I think
> > that would quickly become very inefficient.
> >
> Does elfutils need .debug_ranges as well?

Only if the DWARF producer created DIEs with DW_AT_ranges attributes.
You seem to never do that. If your range is just one simple one you can
just use a DW_AT_low_pc/high_pc pair and .debug_ranges will never be
used.

Also see Appendix B -- Debug Section Relationships in
http://dwarfstd.org/doc/DWARF4.pdf for a picture of which and how
different debug sections might refer to each other.

Cheers,

Mark

             reply	other threads:[~2015-08-21 22:53 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-21 22:53 Mark Wielaard [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-08-25 12:23 Mark Wielaard
2015-08-25 10:59 Ben Gamari
2015-08-23 21:57 Mark Wielaard
2015-08-22 10:18 Ben Gamari
2015-08-21 22:41 Mark Wielaard
2015-08-21 16:25 Ben Gamari
2015-08-21 14:41 Ben Gamari
2015-08-21 14:26 Mark Wielaard
2015-08-21  7:35 Ben Gamari
2015-08-20 17:39 Mark Wielaard
2015-08-20 17:32 Mark Wielaard
2015-08-20 17:06 Josh Stone
2015-08-20 15:32 Mark Wielaard
2015-08-20 15:02 Ben Gamari
2015-08-20 14:46 Mark Wielaard
2015-08-20 14:28 Ben Gamari
2015-08-20 14:15 Mark Wielaard
2015-08-20 14:13 Ben Gamari
2015-08-20 14:04 Mark Wielaard
2015-08-20 12:47 Ben Gamari
2015-08-20 11:09 Ben Gamari
2015-08-19 14:25 Ben Gamari
2015-08-19 13:10 Mark Wielaard
2015-08-19 12:11 Ben Gamari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150821225335.GJ1068@blokker.redhat.com \
    --to=mjw@redhat.com \
    --cc=elfutils-devel@lists.fedorahosted.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).