* Fw: tree_node structure for function declaration
@ 2001-10-14 20:25 Lin Gu
2001-10-16 1:49 ` Joern Rennecke
0 siblings, 1 reply; 2+ messages in thread
From: Lin Gu @ 2001-10-14 20:25 UTC (permalink / raw)
To: gcc
Hi,
I am trying to modify gcc to be a module dependency and call graph
extraction tool. When studying the expand_call function, I got confused how
the tree_node fndecl looks like. At lease I hope to extract the function
name out, but where it is?
Thanks,
lin
P.S. sorry for the encoding in last email.
--------------------------------------------------
Lin Gu (lg6e@virginia.edu)
Dept. of Computer Science
University of Virginia
--------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fw: tree_node structure for function declaration
2001-10-14 20:25 Fw: tree_node structure for function declaration Lin Gu
@ 2001-10-16 1:49 ` Joern Rennecke
0 siblings, 0 replies; 2+ messages in thread
From: Joern Rennecke @ 2001-10-16 1:49 UTC (permalink / raw)
To: Lin Gu; +Cc: gcc
> I am trying to modify gcc to be a module dependency and call graph
> extraction tool. When studying the expand_call function, I got confused how
> the tree_node fndecl looks like. At lease I hope to extract the function
> name out, but where it is?
These kinds of questions are best answered by writting a little example
program and compiling it under gdb control. You set a breakpoint on
a function where you know the node will be available, e.g. expand_decl
or expand_expr, and call debug_tree on the node in question.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-10-16 1:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-14 20:25 Fw: tree_node structure for function declaration Lin Gu
2001-10-16 1:49 ` Joern Rennecke
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).