在 GDB 中(通常在 .gdbinit 文件中)我用来记录我添加的自定义命令,如下所示:
define parg <-- this define my custom command
p *($arg0*)($ebp+8+(4*$arg1)) <--- what in does
end
document parg <--- HERE IS THE COMMENT / DOCUMENTATION ON THIS CUSTOM COMMAND
Prints current function arguments
parg <type> <index>
Prints the <index>th argument of the current function as type <type>
<index> is 0-based
end
我知道如何在 LLDB 中添加命令(命令别名 ...),但我该如何记录呢?