function tree trace for a.out's ?
Jim Balter
jim at segue.segue.com
Sun Apr 21 11:07:15 AEST 1991
In article <1991Apr19.150727.17125 at ghost.unimi.it> matteo at ghost.unimi.it (Matteo Gelosa) writes:
> NM simly maps a function name with is start address, and prints
> it out, so how can you obtain a function calling tree?
nm lists the symbol table, which may contain functions called and variables
used, line numbers, struct and enum definitions, and much more, depending upon
how the module was compiled and what has or hasn't been stripped from the
symbol table.
On SysV systems, at least, cflow is a shell script that gathers information
from several kinds of files and runs it through dag (directed acyclic graph),
which prints it out. It handles .o files (as well as .[csiyl]). It does not
handle executables because generally the symbol table entries for enterns are
merged and the call structure is lost.
More information about the Comp.unix.programmer
mailing list