info registers -- List of integer registers and their contents info scope -- List the variables local to a scope info selectors -- All Objective-C selectors info set -- Show all GDB settings info sharedlibrary -- Status of loaded shared object libraries info signals -- What debugger does w...
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-...
info variables -- All global and static variable names info vector -- Print the status of the vector unit info warranty -- Various kinds of warranty you do not have info watchpoints -- Synonym for ``info breakpoints'' info win -- List of all displayed windows 附注: 基本gdb命令: --- ...
命令“info variables var |regex”查看哪些文件定义了变量var或者正则表达式regex,“info variables ”不会显示局部变量与static变量 (gdb) i variables he All variables matching regular expression "he": File example2.c: 21: struct child he; (gdb) i variables ^he$ All variables matching regular express...
status of the programinfo record -- Info record optionsinfo registers -- List of integer registers and their contentsinfo scope -- List the variables local to a scope---Type <return> to continue, or q <return> to quit---info selectors -- All Objective-C selectorsinfo set -- Show all...
list test1.c:1,10 // 查看 test1.c 的代码1到10行 list fun:查看fun函数源代码 list file:fun:查看flie文件中的fun函数源代码 dprintf动态打印 命令dprintf,格式如下: dprintf location,format string,arg1,arg2,... dprintf命令和C语言中的printf的用法很相似,支持格式化打印。
列表gdb子命令的信息,如info break, info variables, info stack等。run [arglist]:运行程序至断点处停住。可以在run命令之后加上调试程序需要的参数。next:单步调试执行语句,遇到函数也当作一条单步语句而不进入函数。step:单步调试执行语句,遇到函数会直接进入函数内部。continue:继续运行程序至下一...
info all-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命令非常强大,但GDB中还有许多其他命令也可以提供类似的功能。例如,list命令可以显示源代码,而show命令可以显示GDB的配置信息。但是,info命令的优势在于它提供了一个统一的接口来查询各种信息,这使得它在日常调试中非常实用。 正如庄子在《逍遥游》中所说:“大知闲闲,小知间间。”在编程的世界里,我们需要既...
info args -- Argument variables of current stack frame l -- List specified function or line list -- List specified function or line r -- Start debugged program run -- Start debugged program set args -- Set argument list to give program being debugged when it is started ...