info locals -- Local variables of current stack frame info macro -- Show the definition of MACRO info mem -- Memory region attributes info proc -- Show /proc process information about any running process info program -- Execution status of the program info registers -- List of integer regist...
info locals -- Local variables of current stack frame info macro -- Show the definition of MACRO info mem -- Memory region attributes info proc -- Show /proc process information about any running process info program -- Execution status of the program info registers -- List of integer regist...
Remarks Theinfo argscommand displays the function argument values of the current frame. You can select frames using theframe,upanddowncommands. Note that theinfo argscommand does not display the information about the local variables. Use theinfo localscommand to list local variables. ...
info address-- Describe where symbol SYM is stored.infoall-registers-- List of all registers and their contents, for selected stack frame.info args-- All argument variables of current stack frame or those matching REGEXPs.info auto-load-- Print current status of auto-loaded files.info auxv-...
code for a source lineinfo locals -- Local variables of current stack frameinfo macro -- Show the definition of MACROinfo macros -- Show the definitions of all macros at LINESPECinfo mem -- Memory region attributesinfo os -- Show OS data ARGinfo pretty-printer -- GDB command to list ...
| info scope | List the variables local to a scope. | 列出作用域内的局部变量 || info selectors | All Objective-C selectors, or those matching REGEXP. | 所有Objective-C选择器或匹配的选择器 || info set | Show all GDB settings. | 显示所有GDB设置 || info sharedlibrary | Status of ...
3.2info locals- 查看局部变量 (Viewing Local Variables) 在调试过程中,了解当前函数的局部变量是非常重要的。info locals命令可以帮助我们做到这一点。 (gdb) info locals 这将显示当前函数的所有局部变量及其值。例如: x = 10y = 20 这为我们提供了一个清晰的视图,帮助我们理解函数的状态和行为。
我们调试代码时,有时需要通过gdb查看源码,如果源码与交付件不在一个路径,gdb是看不到源码的,执行“list”并不显示源码 root@wangqi:/home/wangqi/winshare/C-Thread-Pool# gdb -q ./example Reading symbols from ./example... (gdb) start Temporary breakpoint 1, main () at example.c:31 31 example...
info inferiors -- Print a list of inferiors being managed. info line -- Core addresses of the code for a source line. info locals -- All local variables of current stack frame or those matching REGEXPs. info macro -- Show the definition of MACRO, and it's source location. ...
The list of statically allocated managed variables can be accessed through a new info cuda managed command. GDB 7.6 Code Base The code base for CUDA-GDB was upgraded from GDB 7.2 to GDB 7.6. Android Support CUDA-GDB can now be used to debug Android native applications either locally or ...