[xx]#objcopy --only-keep-debug a.out a.symbol [xx]#objcopy --strip-debug a.out a.release [xx]#(gdb)add-symbol ./a.symbol