Load so symbol table
(1) info sharedlibrary -- query symbol table address
(2) add-symbol-file /usr/local/lib/libxxx.so.debug 0x0000effe421d26a0
The loaded address is the address found by the first command.
load process symbol table
(1) gdb
(2) file /usr/local/lib/xxx.debug
(3) attach pid // pid is the process id