lldb Quick Reference
From Wikistix
Threads
| command | abbreviation | action |
|---|---|---|
| thread list | list all threads in the core/program | |
| thread backtrace | bt | dump thread stack of current thread |
| thread backtrace all | bt all | dump thread stacks for all threads |
| thread select <index> | t <index> | switch to thread with the given index |
| thread select -t <tid> | t -t <tid> | switch to thread with the given thread id |
Stack
| command | abbreviation | action |
|---|---|---|
| thread backtrace | bt | dump stack backtrace of the current thread |
| frame select <frameid> | f <frameid> | change the current stack frame to the given frame id |
| frame select --relative=1 | up | change current stack frame moving up the stack, to the caller |
| frame select --relative=-1 | down | change current stack frame moving down the stack, to the callee |
| frame variable --no-args | fr v -a | dump stack frame local variables |