gdb define command

省事的命令:

 

show user :

(gdb) show user adder
User command "adder":
  print $arg0+$arg1+$arg2

(gdb) define adder
Type commands for definition of "adder".
End with a line saying just "end".
>print $arg0+$arg1+$arg2
>end
(gdb) adder 1 2 3

6

 

初始化脚本 .gdbinit

gdb 初始过程

1 executes all command from system init file (like /etc/bashrc)

2 executes home init file (like ~/.bashrc)

3 process command line options

4 executes all the commands from (./.exrc)

5 -x specified init file

6 load history command

 

set history filename xxx

set history save on/off

show history

show commands

 

 

------------------------

i handle = info handle = info signals

 

------

chechpoint

info checkpoint

restart checkpoint-id

kkkk

las-mile

 

 

转载于:https://www.cnblogs.com/kwingmei/p/3606370.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值