How to print info of each function by running an executable (compiled with -g) in gdb?

Peng Yu <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CABrM6w=eLY+eoeQZLtSfPAB2q7Rxc20aHvTwv1gurNeSs+S+Tg@mail.gmail.com>
Hi, I am currently inserting the following line into functions for
which I want to print the function info. However, this can be tedious
if the source code is large.

fprintf(stderr, "%s:%d:%s\n", __FILE__, __LINE__, __PRETTY_FUNCTION__);

Is there a way to automatically print the information of each function
being called using gdb?

-- 
Regards,
Peng
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.