How can I print all global variables/local variables? Is that possible in gdb?
Printing all global variables/local variables
cgdbglobal-variablesvariables
Related Topic
- Javascript – the scope of variables in JavaScript
- Android – How to declare global variables in Android
- C++ – the difference between const int*, const int * const, and int const *
- How to use extern to share variables between source files
- Javascript – Static variables in JavaScript
- Sqlite – Improve INSERT-per-second performance of SQLite
- Python function global variables
- Angularjs – Global variables in AngularJS
Best Answer
Type
info variables
to list "All global and static variable names".Type
info locals
to list "Local variables of current stack frame" (names and values), including static variables in that function.Type
info args
to list "Arguments of the current stack frame" (names and values).