public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
From: Roland McGrath <roland@redhat.com>
To: Sami Wagiaalla <swagiaal@redhat.com>
Cc: frysk <frysk@sourceware.org>
Subject: Re: Dwarf expertise needed
Date: Tue, 19 Jun 2007 21:27:00 -0000	[thread overview]
Message-ID: <20070619211151.0AAF24D05D3@magilla.localdomain> (raw)
In-Reply-To: Sami Wagiaalla's message of  Tuesday, 19 June 2007 16:41:37 -0400 <46783F81.3090906@redhat.com>

> get_addrdie() does not return the correct die:

The libdw and libdwfl functions called "addrdie" give you the CU containing
that address, as they are described to do.  It sounds like you are
expecting something different.

> The other issue is that in the test case where it works the complete 
> hierarchy of scopes is not returned. Is there a bug or what is the 
> correct way of getting the hierarchy of scopes that a die belongs to ? 
> Frysk uses dwarf_getscopes()

dwarf_getscopes is the right call to use to get specific information about
a PC address, which it sounds like you expected is what "addrdie" meant.

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=230235 is outstanding
and I have not had the chance to look into it.  It is probably related.

To test dwarf_getscopes, please run tests/addrscopes from your elfutils
build, i.e.:

	./tests/addrscopes -e executable-file 0x123 0x456 

if 0x123 and 0x456 are the PC values of interest.

Put the exact command line you used in the bug report and attach your
actual executable file (not just source).  


Thanks,
Roland

  reply	other threads:[~2007-06-19 21:11 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-19 15:22 Sami Wagiaalla
2007-06-19 15:46 ` Sami Wagiaalla
2007-06-19 18:28   ` Sami Wagiaalla
2007-06-19 21:11     ` Sami Wagiaalla
2007-06-19 21:27       ` Roland McGrath [this message]
2007-06-19 21:31         ` Sami Wagiaalla
2007-06-19 21:31           ` Roland McGrath
2007-07-17 17:07             ` Sami Wagiaalla
2007-07-18  9:03               ` Roland McGrath
2007-07-18 15:38                 ` Sami Wagiaalla
2007-07-18 22:43                   ` Roland McGrath
2007-07-19 15:31                     ` Sami Wagiaalla
2007-07-21  0:29                       ` Roland McGrath
2007-07-26 15:42                         ` Sami Wagiaalla
2007-08-07  9:04                           ` Roland McGrath
2007-08-09 17:06                             ` Sami Wagiaalla
2007-07-19 15:40                 ` Sami Wagiaalla
2007-06-19 21:38           ` Sami Wagiaalla
2007-06-19 21:58         ` Sami Wagiaalla

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=20070619211151.0AAF24D05D3@magilla.localdomain \
    --to=roland@redhat.com \
    --cc=frysk@sourceware.org \
    --cc=swagiaal@redhat.com \
    /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).