How can I print all global variables/local variables? Is that possible in gdb?
Type info variables to list "All global and static variable names".
info variables
Type info locals to list "Local variables of current stack frame" (names and values), including static variables in that function.
info locals
Type info args to list "Arguments of the current stack frame" (names and values).
info args
1.4m articles
1.4m replys
5 comments
57.0k users