我想用来gdb
调试代码。当我写命令时:
gdb gdns_processor
它将从以下位置输出警告消息gdb
:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/gdnscenter/bin/gdns_processor...
warning: the debug information found in "/usr/lib/debug//usr/local/gdnscenter/bin/gdns_processor.debug" does not match "/usr/local/gdnscenter/bin/gdns_processor" (CRC mismatch).
warning: the debug information found in "/usr/lib/debug/usr/local/gdnscenter/bin/gdns_processor.debug" does not match "/usr/local/gdnscenter/bin/gdns_processor" (CRC mismatch).
(no debugging symbols found)...done.
我不明白 CRC 不匹配。为什么gdb
找不到符号?
PS:我的gcc
选项设置了-g
标志。
CPPFLAGS="-D_LIBC_REENTRANT $CPPFLAGS -g"