RE: [patch] compile: Fix MinGW build [Re: [mingw rfc] Add mkdtemp to gdb/gnulib/]

Pierre Muller
2014-12-16T12:40:48Z

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