My single most used gdb
command is l
followed by n
followed by l -
.
How can I get the same in lldb?
I am
LLDB: [How to] List source code
ie: For anyone looking for "How do I make lldb show which line I am on again? (since my recent commands have covered it up)", it is simply f
. Type f
to see where you are at in the code again.
f
OR
frame select
Source: LLDB: List source code
See also the help menu in lldb
:
help f
shows the following:
(lldb) help f Select the current stack frame by index from within the current thread (see 'thread backtrace'.) Syntax: f
[ ] Command Options Usage: f [-r ] [ ] -r ( --relative ) A relative frame index offset from the current frame index. This command takes options and free-form arguments. If your arguments resemble option specifiers (i.e., they start with a - or --), you must use ' -- ' between the end of the command options and the beginning of the arguments. 'f' is an abbreviation for 'frame select'
The bottom of that help menu shows that "f
is an abbreviation for frame select
".
Note that in gdb
, the equivalent command is simply:
f
OR
frame