How to make interesting print functions of gdb, as they are called, indented depending on how deep they are on the stack?
I want to say something like (composed):
(gdb) trace Foo* Bar* printf
And gdb print all the functions that start with Foo or Bar, as they are called. A view like gnu cflow, except for the use of debugging symbols and only print functions that are actually called, and not all possible call flows.
Tools that won't help include cachegrind, callgrind, and oprofile, which streamline the results by which functions are called most often. I need a call order.
A wildcard (or equivalent) is necessary since there are many Foo and Bar functions. Although I would agree to record absolutely every function. Or perhaps by pointing gdb to write all the functions in a specific library.
Some GDB masters must have a script for this general task!
c debugging dynamic gdb call-graph
callgiraffe Nov 23 '08 at 0:25 2008-11-23 00:25
source share