在 LLDB 中,是否可以在断点处编写一些简单的命令并在没有 python 的情况下自动继续

In LLDB, is it possible script a few simple commands at breakpoint and auto continue without python

在 gdb 中,我可以设置一个 scrip 在断点处执行一些简单的命令。例如:

set pagination off

b foo.c:119
commands
    bt 10
    cont
end
r
quit

lldb 中是否有等效项?我知道这可能可以在 lldb 中使用 python 来完成。如果可能的话,我只是更喜欢简单的标准 lldb 命令。

如果您使用 breakpoint command add,LLDB 将需要正常的调试器命令,而不是 Python 脚本。

所以:

b foo.c:119
br co a
> bt 10
> cont
> DONE