From: Sami Wagiaalla <swagiaal@redhat.com>
To: "Frank Ch. Eigler" <fche@redhat.com>, frysk <frysk@sourceware.org>
Subject: elfutils use patterns in frysk
Date: Tue, 06 Nov 2007 17:49:00 -0000 [thread overview]
Message-ID: <4730A923.4080100@redhat.com> (raw)
Hi Frank,
A while back you asked about elfutils use patterns in Frysk.
I only know abut libdw* so everybody feel free to add to this:
Okay so there are two types of items here:
Things we do routinely in frysk that require more than one libdw* call:
- getting the function die corresponding an address:
- dwfl_addrdie (get compilation unit)
- dwarf_get_scopes (first scope is the narrowest die containing the
give address)
- dwarf_get_scopes_die (get physical scopes)
- iterate until the first DW_TAG_subprogram
- Getting functions have have been inlined into a function currently in
frame
simmilar to above.
Things we do to get C++ information out of the C'ish dwarf information
(also involves more than one libdw* function call, hurestics, etc.):
- Getting a class to which a function belongs
similar to getting functions above, with an extra step to follow
DW_TAG_specification
- Deciding when a member function/variable is/isnt static
- checking Tags and artificial parameter.
I cant think of more atm... I will update you as I do.
If there isnt enough detail in the above please let me know.
Cheers,
Sami
next reply other threads:[~2007-11-06 17:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-06 17:49 Sami Wagiaalla [this message]
2007-11-06 18:25 ` Phil Muldoon
2007-11-06 21:36 ` Petr Machata
2007-11-06 21:56 ` Phil Muldoon
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=4730A923.4080100@redhat.com \
--to=swagiaal@redhat.com \
--cc=fche@redhat.com \
--cc=frysk@sourceware.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).