분리할 때..
gcc -ggdb -o test test.c;
cp test test.debug;
strip --only-keep-debug test.debug;
strip test;
합칠 때
objcopy --add-gnu-debuglink=test.debug test
gdb 에서..
http://sigquit.wordpress.com/2008/09/15/debugging-programs-with-a-external-symbol-file/
(gdb) symbol-file test.debug
댓글 없음:
댓글 쓰기