tony-p-lee
tony-p-lee

Reputation: 807

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

In gdb, I can setup a scrip to execute a few simple commands at breakpoint. For example:

set pagination off

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

Is there an equivalent in lldb? I know it probably can be done with python inside lldb. I just prefer simple standard lldb commands if possible.

Upvotes: 3

Views: 354

Answers (1)

Ken Thomases
Ken Thomases

Reputation: 90521

If you use breakpoint command add, LLDB will expect normal debugger commands, not a Python script.

So:

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

Upvotes: 3

Related Questions