- 论坛徽章:
- 0
|
我的程序分别放在工作目录的 src pub TestDriver目录下。
我在工作目录下,使用automake生成了main。main.cpp放在TestDriver目录下。
另外main.cpp中引用了cppunit的库。
make 什么的都没问题,运行也没问题。可是用gdb来debug时,就有问题了。
我在使用gdb时,使用 --directory命令引用了源码的目录,但是在调试时,
gdb报错如下:
- gdb --directory=src:pub:TestDriver:.deps:. main
- GNU gdb 4.18 (FreeBSD)
- Copyright 1998 Free Software Foundation, Inc.
- GDB is free software, covered by the GNU General Public License, and you are
- welcome to change it and/or distribute copies of it under certain conditions.
- Type "show copying" to see the conditions.
- There is absolutely no warranty for GDB. Type "show warranty" for details.
- This GDB was configured as "i386-unknown-freebsd"...Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dwarf2read.c line 3049 in dwarf2_read_section
- Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader.
- (gdb) b main
- No symbol table is loaded. Use the "file" command.
- (gdb) quit
- mike@cvs:/samba_mike/UnixProj/QmailSync/QmailSyncSrv>; gdb --directory=src:pub:TestDriver:.deps:. main
- GNU gdb 4.18 (FreeBSD)
- Copyright 1998 Free Software Foundation, Inc.
- GDB is free software, covered by the GNU General Public License, and you are
- welcome to change it and/or distribute copies of it under certain conditions.
- Type "show copying" to see the conditions.
- There is absolutely no warranty for GDB. Type "show warranty" for details.
- This GDB was configured as "i386-unknown-freebsd"...Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dwarf2read.c line 3049 in dwarf2_read_section
- Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader.
- (gdb) b main
- No symbol table is loaded. Use the "file" command.
复制代码
请问这是怎么回事?应该如何处理? |
|