linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* building of call tree
@ 2010-04-02 16:16 Sergey Lapin
  2010-04-02 17:55 ` Christopher Li
  0 siblings, 1 reply; 2+ messages in thread
From: Sergey Lapin @ 2010-04-02 16:16 UTC (permalink / raw)
  To: linux-sparse

Hi, all!

I'd like to make call-tree builder using libsparse.
I need to build symbol-hierarchy and feed dot with it.
I use test-dissect.c as an example.

I understand how to extract the symbols and find if it is definition
or reference,
but I fail with scoping. I need to detect which function that
particular reference belongs to,
and how to detect if that reference is really a function.
sym->type isn't what I need, sym->ctype.base_type is used to print base type,
but I'd like to print type as is, and detect if that is a function a proper way.
Or is there any better way to get this information?

Thanks a lot,
S.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-02 17:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-02 16:16 building of call tree Sergey Lapin
2010-04-02 17:55 ` Christopher Li

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 NNTP newsgroup(s).