This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [patch] compile: Fix MinGW build [Re: [mingw rfc] Add mkdtemp to gdb/gnulib/]
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: "'Jan Kratochvil'" <jan dot kratochvil at redhat dot com>, "'Eli Zaretskii'" <eliz at gnu dot org>
- Cc: <brobecker at adacore dot com>, <yao at codesourcery dot com>, <gdb-patches at sourceware dot org>, <ktietz at redhat dot com>
- Date: Tue, 16 Dec 2014 13:40:28 +0100
- Subject: RE: [patch] compile: Fix MinGW build [Re: [mingw rfc] Add mkdtemp to gdb/gnulib/]
- Authentication-results: sourceware.org; auth=none
- References: <87egs2vcfu dot fsf at codesourcery dot com> <20141214182341 dot GA2908 at host2 dot jankratochvil dot net> <87a92pvc0w dot fsf at codesourcery dot com> <20141215124358 dot GU5457 at adacore dot com> <20141215171225 dot GA19674 at host2 dot jankratochvil dot net> <20141215181449 dot GA5457 at adacore dot com> <20141215182057 dot GA22226 at host2 dot jankratochvil dot net> <20141215183554 dot GB5457 at adacore dot com> <20141215184014 dot GA22610 at host2 dot jankratochvil dot net> <83y4q8wxk7 dot fsf at gnu dot org> <20141215222801 dot GA28138 at host2 dot jankratochvil dot net>
Hi Jan,
I tested your patch,
which appeared as an attached file named 1.sql,
which made it difficult to guess it was indeed the patch...
Nevertheless, your patch fixes compilation error for mingw32
and as such it should be committed as an obvious fix.
To go a little bit further, I tried to use
the compile command on the newly generated mingw32 GDB executable.
using ./gdb ./gdb
(with a minimal hello.c source code)
<<<< (top-gdb) compile code hello.c
returns
>>>> The program must be running for the compile command to work.
I am not sure why this restriction should apply.
(top-gdb) start
Temporary breakpoint 3 at 0x40158a: file ../../../binutils-gdb/gdb/gdb.c, line 28.
Starting program: E:\cygwin-32\home\Pierre\git\build\mult-mingw32\gdb\gdb.exe
[New Thread 6572.0x4e0]
Temporary breakpoint 3, main (argc=1, argv=0x3d4b30)
at ../../../binutils-gdb/gdb/gdb.c:28
(top-gdb) compile file hello.c
Could not load libcc1.so: "libcc1.so": Le module spÃcifià est introuvable.
(French meaning: "the specified module can't be found").
So the mkdtmp is not the only problem
for mingw compile support.
Pierre Muller