This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB Trace functions calls when executing a program


On 7 Mar 2018 06:17, "Satya Prakash Prasad" <satyaprakash.prasad@gmail.com>
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]