在GDB(通常在.gdbinit中),我用它來記錄我添加了自定義命令是這樣的:如何記錄自定義LLDB命令(別名)?
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添加一個命令(命令別名...),但我怎麼記錄它?