GDB

查看指定内存地址的指令

MacOS 安装

1
2
3
4
5
6
7
brew install gdb

之后安装证书,然后

codesign --entitlements gdb-entitlement.xml -fs gdb-cert /usr/loacl/bin/gdb

echo "set startup-with-shell off" >> ~/.gdbinit