在Cygwin上编译调试vp8进行调试的问题

时间:2010-11-27 15:41:15

标签: windows gcc gdb cygwin vp8

我有以下版本的Cygwin,yasm,gcc和gdb:

CYGWIN_NT-5.1 Thorondor 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin
yasm 1.1.0.2352
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
GNU gdb 6.8.0.20080328-cvs (cygwin-special)

我使用以下命令编译了vp8:

$ ./configure --enable-debug
$ make

但是当我尝试使用GDB进行调试时,出现以下错误:

$ gdb simple_decoder.exe
GNU gdb 6.8.0.20080328-cvs (cygwin-special)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/
gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
Dwarf Error: bad offset (0x4c4000) in compilation unit header (offset
0x0 + 6) [in module /cygdrive/
c/work/vp8/csim/build/simple_decoder.exe]
(gdb) q

有人可以帮我解决这个问题吗?

谢谢,

阿琼

1 个答案:

答案 0 :(得分:0)

您的编译器和binutils太旧了。这在大约2000年解决了,故障来自链接器(见http://gcc.gnu.org/ml/gcc-bugs/2000-06/msg00768.html