加载so符号表
(1) info sharedlibrary --查询符号表地址
(2) add-symbol-file /usr/local/lib/libxxx.so.debug 0x0000effe421d26a0
加载的地址为第一个命令查到的地址。
加载进程符号表
(1) gdb
(2) file /usr/local/lib/xxx.debug
(3) attach pid //pid 为进程id
加载so符号表
(1) info sharedlibrary --查询符号表地址
(2) add-symbol-file /usr/local/lib/libxxx.so.debug 0x0000effe421d26a0
加载的地址为第一个命令查到的地址。
加载进程符号表
(1) gdb
(2) file /usr/local/lib/xxx.debug
(3) attach pid //pid 为进程id