如何将命令“commands break#”放入 .gdbinit 中?我试过了但是失败了。谢谢
define macro1
b func1
commands
p func1_var
end # gdb complaints that "This command cannot be used at the top level."
end
最佳答案
确保你使用 commands
with s
而不是 command
(是的,我知道你的帖子有s
).
这就是我遇到问题的原因,但我不明白为什么。
GDB 7.11,Ubuntu 16.10。
关于c - 我如何将命令 "commands"放入 gdbinit 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12906089/