JUST DO IT ~

          我只想當(dāng)個(gè)程序員

          gdb 匯總


          gcc編譯時(shí)候要 -g ,不要 -o 優(yōu)化否則gdb會(huì)提示 ( optimized out  )
          Recompile without optimizations (-O0 on gcc).

          info  


          info address -- Describe where symbol SYM is stored
          info all-registers -- List of all registers and their contents
          info args -- Argument variables of current stack frame
          info auto-load -- Print current status of auto-loaded files
          info auto-load-scripts -- Print the list of automatically loaded Python scripts
          info auxv -- Display the inferior's auxiliary vector
          info bookmarks -- Status of user-settable bookmarks
          info breakpoints -- Status of specified breakpoints (all user-settable breakpoints if no argument)
          info checkpoints -- IDs of currently known checkpoints
          info classes -- All Objective-C classes
          info common -- Print out the values contained in a Fortran COMMON block
          info copying -- Conditions for redistributing copies of GDB
          info dcache -- Print information on the dcache performance
          info display -- Expressions to display when program stops
          info extensions -- All filename extensions associated with a source language
          info files -- Names of targets and files being debugged
          info float -- Print the status of the floating point unit
          info frame -- All about selected stack frame
          info functions -- All function names
          info handle -- What debugger does when program gets various signals
          info inferiors -- IDs of specified inferiors (all inferiors if no argument)
          info line -- Core addresses of the code for a source line
          info locals -- Local variables of current stack frame
          info macro -- Show the definition of MACRO
          info macros -- Show the definitions of all macros at LINESPEC
          info mem -- Memory region attributes
          info os -- Show OS data ARG
          info probes -- Show available static probes
          info proc -- Show /proc process information about any running process
          info program -- Execution status of the program
          info record -- Info record options
          info registers -- List of integer registers and their contents
          ---Type <return> to continue, or q <return> to quit---
          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 when program gets various signals
          info skip -- Display the status of skips
          info source -- Information about the current source file
          info sources -- Source files in the program
          info stack -- Backtrace of the stack
          info static-tracepoint-markers -- List target static tracepoints markers
          info symbol -- Describe what symbol is at location ADDR
          info target -- Names of targets and files being debugged
          info tasks -- Provide information about all known Ada tasks
          info terminal -- Print inferior's saved terminal status
          info threads -- Display currently known threads
          info tracepoints -- Status of specified tracepoints (all tracepoints if no argument)
          info tvariables -- Status of trace state variables and their values
          info types -- All type names
          info variables -- All global and static variable names
          info vector -- Print the status of the vector unit
          info vtbl -- Show the virtual function table for a C++ object
          info warranty -- Various kinds of warranty you do not have
          info watchpoints -- Status of specified watchpoints (all watchpoints if no argument)
          info win -- List of all displayed windows

          參考:

          posted on 2015-08-26 10:53 小高 閱讀(296) 評(píng)論(0)  編輯  收藏 所屬分類: C

          導(dǎo)航

          <2015年8月>
          2627282930311
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345

          統(tǒng)計(jì)

          常用鏈接

          留言簿(3)

          隨筆分類(352)

          收藏夾(19)

          關(guān)注的blog

          手冊(cè)

          搜索

          積分與排名

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 宝兴县| 镶黄旗| 乌兰察布市| 怀安县| 金乡县| 长子县| 长沙县| 综艺| 肥东县| 永德县| 台东县| 寿阳县| 弋阳县| 洛宁县| 开阳县| 汉川市| 诸暨市| 白山市| 唐山市| 腾冲县| 桐乡市| 卓尼县| 南丰县| 苏尼特右旗| 景洪市| 彰武县| 互助| 谷城县| 乌拉特前旗| 宣威市| 遵化市| 启东市| 璧山县| 股票| 灌南县| 南丰县| 修水县| 青岛市| 余干县| 洪泽县| 东辽县|