This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
GDB Trace functions calls when executing a program
- From: Satya Prakash Prasad <satyaprakash dot prasad at gmail dot com>
- To: gdb-info at sourceware dot org, gdb-faq at sourceware dot org, gdb at sourceware dot org
- Date: Wed, 28 Feb 2018 20:49:17 +0530
- Subject: GDB Trace functions calls when executing a program
- Authentication-results: sourceware.org; auth=none
Please let me know if in GDB there is a way to print function names when
program is executing - this is to just track / trace the code flow.
Generally in projects which has thousands of lines of code - it is very
difficult to trace a flow. The first is to decide where to put a breakpoint
for analysis. But to know the place to put breakpoint we need to know where
to enable it - I mean it should be within a function of a flow.
So can we just enable some command and let the program when running using
gdb - gdb can simply print functions name as it executes them.
Is the same possible?
Regards,
Prakash