Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB Trace functions calls when executing a program
@ 2018-02-28 15:19 Satya Prakash Prasad
  2018-03-07  1:44 ` Yubin Ruan
  0 siblings, 1 reply; 4+ messages in thread
From: Satya Prakash Prasad @ 2018-02-28 15:19 UTC (permalink / raw)
  To: gdb-info, gdb-faq, gdb

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-07  6:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-28 15:19 GDB Trace functions calls when executing a program Satya Prakash Prasad
2018-03-07  1:44 ` Yubin Ruan
2018-03-07  6:17   ` Satya Prakash Prasad
2018-03-07  6:46     ` Jonah Graham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox