This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Broken build of gdb with gcc 4.5 and inoperable x64 windows gdb


On Sun, Jul 26, 2009 at 12:46 AM, Kai Tietz<ktietz70@googlemail.com> wrote:

> I tried to build today my regular regression test of gdb and x64
> windows target. ... Secondly after building gdb (which was
> successful), I tried to use it. But it seems to be broken, as it is
> not able to open (find?) any specified executables anymore.

I've reproduced the problem using
x86_64-w64-mingw32-gcc (GCC) 4.5.0 20090726 (experimental)

It is caused by an optimization bug in gcc (it mis-compiles is_regular_file):

./gdb -q ./gdb.exe
(gdb) ./gdb.exe: No such file or directory.

rm source.o && make source.o CFLAGS=-g && make

./gdb -q ./gdb.exe
Setting up the environment for debugging gdb.
During symbol reading, DW_AT_name missing from DW_TAG_base_type.
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
Breakpoint 1 at 0x405bd0: file ../../src/gdb/utils.c, line 1001.
During symbol reading, DW_AT_type missing from DW_TAG_subrange_type.
Breakpoint 2 at 0x413ef0: file ../../src/gdb/cli/cli-cmds.c, line 204.

I filed upstream GCC bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40909

-- 
Paul Pluzhnikov


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]