所有命令选择与input 值用 —- 区分
1 p/x 16 转16进制 https://sourceware.org/gdb/onlinedocs/gdb/Output-Formats.html
/t 二进制 /s 字符串 /c char /d 十进制
2 c/s/n/f continume/ step into /next /finish
3 frame info
4 thread return //返回调用处,比如 加 符号断点 -[__NSArray0 objectAtIndex:] 找到数组越界调用处
5 p/e
6 b main.m:23
breakpoint set -F "-[NSArray objectAtIndex:]"
7 x
'x' is an abbreviation for 'memory read'
e char *$str = (char *)malloc(8)
e (void)strcpy($str, "anjun")
x/4 $str
e (void)free($str)
8 LLDB has full, built-in Python support. If you type script in LLDB, it will open a Python REPL.