This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
How to print info of each function by running an executable (compiled with -g) in gdb?
- From: Peng Yu <pengyu dot ut at gmail dot com>
- To: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Sat, 1 Oct 2016 00:11:58 -0500
- Subject: How to print info of each function by running an executable (compiled with -g) in gdb?
- Authentication-results: sourceware.org; auth=none
Hi, I am currently inserting the following line into functions for
which I want to print the function info. However, this can be tedious
if the source code is large.
fprintf(stderr, "%s:%d:%s\n", __FILE__, __LINE__, __PRETTY_FUNCTION__);
Is there a way to automatically print the information of each function
being called using gdb?
--
Regards,
Peng