Identify source file name for a symbol in gdb debugger
问题 I am debugging an application based on multiple C++ shared libraries in gdb on Ubuntu 18.04 and want to find the source code (or at least the name of the shared library or C++ namespace) of a symbol called TRUE . All code has been compiled with -g3 -O0 -Wall . Edit: I have "only" the debug symbols available for shared libraries and the application code is compiled with -g3 -O0 -Wall . Here is what I know about the symbol in gdb : (gdb) ptype TRUE type = enum {FALSE, TRUE} (gdb) whatis TRUE