JUST DO IT ~

          我只想當個程序員

          gdb 匯總


          gcc編譯時候要 -g ,不要 -o 優化否則gdb會提示 ( 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 小高 閱讀(302) 評論(0)  編輯  收藏 所屬分類: C

          導航

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

          統計

          常用鏈接

          留言簿(3)

          隨筆分類(352)

          收藏夾(19)

          關注的blog

          手冊

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 晋州市| 锦州市| 彰化县| 定结县| 皋兰县| 新余市| 平潭县| 白山市| 屯昌县| 桦甸市| 荔波县| 微山县| 察哈| 曲靖市| 微博| 泰和县| 江达县| 泰宁县| 百色市| 陇西县| 二手房| 福鼎市| 县级市| 贵德县| 柳林县| 松江区| 永春县| 靖安县| 嘉禾县| 晴隆县| 盐津县| 文成县| 法库县| 新营市| 皋兰县| 呼和浩特市| 江川县| 吉林省| 米泉市| 来凤县| 尚义县|