Similar implementation of .gdbinit from fG! for lldb in python. Based on lldbinit.
x86_64:
How to install it:
cp lldbinit.py /Library/Python/2.7/site-packages
in $HOME/.lldbinit add:
command script import lldbinit
Commands which are implemented:
stepo - step over some instructions (call/movs/stos/cmps/loop)
dd - dump hex data at certain address (keep compatibility with .gdbinit)
this shoud be db command
ctx/context - dump registers and assembly
lb - load breakpoints from file and apply them (currently only func names are applied)
u - dump instructions at certain address (SoftICE like u command style)
ddword - dump data as dword
dq - dump data as qword
dw - dump data as word
iphone - connect to debugserver running on iPhone
If you wanna inline help, just try this:
(lldb) script help(lldbinit.dd)
Help on function dd in module lldbinit:
dd(debugger, command, result, dict)
dump hex data at certain address.
Example:
dd 0x100000ef0