GDB
xiaoyulovly
这个作者很懒,什么都没留下…
展开
-
GDB常用命令
0、基本命令up/down/f/p/x/b反汇编:disassemble寄存器:i r1、设置子进程跟随set follow-fork-mode child2、生成core文件gcore coredump名称3、找出coredump文件的应用程序gdb -c corefile 使用gdb调试core文件info auxv 索引31对应的...原创 2019-05-10 14:11:22 · 837 阅读 · 0 评论 -
GDB设置启动参数和启动脚本
1、启动参数在/root目录创建名为:.gdbinit的文件(注意以 . 开头的文件)可在此文件内设置以下参数:set confirm offset pagination offset print pretty onset print thread-events offset solib-search-path /opt/libhandle SIGPIPE nostop ...原创 2019-08-24 15:05:10 · 1748 阅读 · 0 评论 -
gdb脚本
100个gdb小技巧https://wizardforcel.gitbooks.io/100-gdb-tips/index.html循环set $seq=0while ($seq < 32)set $seq++end 宏定义 define dump_history set var $slab_id = $arg0 set va...原创 2019-08-26 12:02:45 · 392 阅读 · 0 评论