Re: GDB Trace functions calls when executing a program

Jonah Graham <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAPmGMvgd4D_ga+xVQ0Yy6bkDpaSB5OfdcfSFMLUqzV71wD=M6w@mail.gmail.com>
On 7 Mar 2018 06:17, "Satya Prakash Prasad" <[email protected]>
wrote:


Also inserting printf in each function call is not possible cause it would
take long hours and effort for a code spreading thousands of lines.


You can let the compiler do the heavy lifting by using
-finstrument-functions

Here is a nice blog post about it
https://mcuoneclipse.com/2015/04/04/poor-mans-trace-free-of-charge-function-entryexit-trace-with-gnu-tools/
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.