GDB&LLDB
关闭gdb语法高亮
set style enable off
x command
x [Address expression]
x /[Format] [Address expression]
x /[Length][Format] [Address expression]
Format
o - octal
x - hexadecimal
d - decimal
u - unsigned decimal
t - binary
f - floating point
a - address
c - char
s - string
i - instruction
LLDB 打印栈
echo "thread backtrace all" | lldb -p pid