In gdb I have this define in order to skip one line
define skip
tbreak +1
jump +1
end
Can one do the same with lldb?
lldb doesn't have a define
. One option is creating an lldb script with the commands you want. From there, you can define an alias named skip
that runs the commands.
For example, here's the contents of a file named ~/scripts/lldb/skip
:
tbreak +1
jump +1
To run this script, do:
command source ~/scripts/lldb/skip
To make this more convenient, you can create an alias in your ~/.lldbinit
:
command alias skip command source ~/scripts/lldb/skip