dai*_*isy 11 linux debugging gdb
我试图在一行上运行多个命令,例如
(gdb) info threads; c
Args must be numbers or '$' variables.
Run Code Online (Sandbox Code Playgroud)
但看起来gdb不支持.有任何想法吗?
Nan*_*iao 14
使用define
命令定义自己的命令:
(gdb) define mycommand
Type commands for definition of "mycommand".
End with a line saying just "end".
>info threads
>c
>end
(gdb) mycommand
Run Code Online (Sandbox Code Playgroud)
有关详细信息,请参阅:https://sourceware.org/gdb/onlinedocs/gdb/Define.html#Define.
归档时间: |
|
查看次数: |
4718 次 |
最近记录: |