This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Broken build of gdb with gcc 4.5 and inoperable x64 windows gdb
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: Kai Tietz <ktietz70 at googlemail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 30 Jul 2009 00:24:22 -0700
- Subject: Re: Broken build of gdb with gcc 4.5 and inoperable x64 windows gdb
- References: <90baa01f0907260046y16f6434ib70af4db822c47d5@mail.gmail.com>
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