zoukankan      html  css  js  c++  java
  • Linux gdb使用

    Constants

      $、$n、$$、$$n、$_、$__、$cdir、$cwd、$fp、$pc、$ps、$sp

    File resolution

      file::variable

    GDB Commands

    Command Purpose Examples
    backtrace 显示调用栈 ba
    break 在某处或者某行设置断点 b main b parser.c:777
    continue 从断点处继续执行 cont
    delete 删除断点 d 3
    finish 执行到结束 fin
    info breakpoints 列出所有断点 i br
    next 执行到下一语句,跳过 ne
    print 显示表达式/值 print 1.0/2.0
    run 执行或重新执行 ru ru -u -o foo < data
    step 下一语句,进入 s
         
         

     

     

     

     

     

     

     

     

     

     

     

     

     

    Alias Short for ... notes   Alias Short for ... notes
    bt backtrace     i info  
    c、cont continue     l list  
    d delete     n next  
    dir directory     ni nexti  
    do down     p print  
    e edit     po print-object  
    f frame     r run  
    fo forward-search     s step  
    gcore generate-core-file     share sharedlibrary  
    h help     si stepi  
    dis disable     u until  
    b breakpoint     where backtrace  
      clear     file 设置要调试的文件  
      call 执行函数   kill    
      display 每次暂停时显示值   thread    
      attach/detach     show    
      return     finish    
    q quit          
                 
                 
  • 相关阅读:
    操作系统、存储介质以及电信行业单位换算差异
    Luogu P1659 [国家集训队]拉拉队排练
    AC自动机
    KMP
    Luogu P1470 最长前缀 Longest Prefix
    Luogu P2292 [HNOI2004]L语言
    Manacher算法
    字典(Trie)树
    逆序对
    vs
  • 原文地址:https://www.cnblogs.com/lavieenrose/p/2520047.html
Copyright © 2011-2022 走看看