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/