I am trying to explore gdb, objdump, valgrind and nm tools for debugging purpose in linux.
I am able to print local variables using info locals in GDB but I need to go into current stack frame to print local variables.
Is there any way to print all the local and global variables (with values) used in a C code (maybe from a coredump if program is crashed) without going into particular stack frame?