Mail Archives: djgpp/1997/03/27/15:19:33
Paul Peavyhouse wrote:
>
> Does anyone know if there are any utilities that will build a
> hierarchy diagram of function calls in a program's source code? The diagram
From the source code?? What a sense shuold this make?
> should look like a Windows Explorer tree, with "void main(void)" (or whatever)
> at the top (level 0), and ever function called from main would be drawn as a
> node off main with a level of 1, and every function from those functions would
> be drawn as another node off those nodes, etc etc.
And what is, if you have recursive functions?
> This seems like a really useful tool for tracing function calls to
> deeper and deeper levels, and I thought that there may be a tool like this
You can use in RHIDE the "Call stack" window when debugging to get
the function call history or in GDB you can use the backtrace
command.
Robert
--
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post: Am Berg 3, D-09573 Dittmannsdorf *
* e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE *
* WWW: http://www.tu-chemnitz.de/~rho *
*****************************************************************
- Raw text -