From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: libunwind question
Date: Mon, 13 Oct 2003 19:01:38 +0000 [thread overview]
Message-ID: <marc-linux-ia64-106607171714962@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-106606816410248@msgid-missing>
>>>>> On Mon, 13 Oct 2003 11:01:47 -0700, Umut Aymakoglu <umuta@us.ibm.com> said:
Umut> During unwinding is there a way to tell if the ip is from a
Umut> shared library or from an executable and get the name of the
Umut> object it is from?
Not with libunwind itself.
Umut> I use the unw_get_proc_name() call to get the symbol name but
Umut> would like to get the name of the object as well.
You should be able to get that by walking the list of mapped objects.
You can get that with dl_iterate_phdr(). The callback will be invoked
once for each object and then you can check the ELF PHDR to see if the
IP falls inside the object.
--david
PS: I'm cc'ing libunwind, since that's probably a more appropriate place
to discuss such issues.
prev parent reply other threads:[~2003-10-13 19:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-13 18:01 libunwind question Umut Aymakoglu
2003-10-13 19:01 ` David Mosberger [this message]
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=marc-linux-ia64-106607171714962@msgid-missing \
--to=davidm@napali.hpl.hp.com \
--cc=linux-ia64@vger.kernel.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