I would suggest using python here. You can make a new LLDB command in a python
file and then "command script import /path/to/my/file.py". This python script
would install a new command and you can then just run that command. Happy to
help you get this script working off the mailing lists if you
I have a very simple lldb script:
thread select 1
disassemble --start-address $pc-24 --end-address $pc+24
When I run lldb with -o "process launch -s" and -s "dis.lldb", I get odd output
- the disassembly from "thread select 1" and from the disassemble command run
together.
This is what I see