binutils-gdb/gdb/testsuite/lib
Jan Kratochvil 1bc1068a0c Fix MinGW compilation
On Sun, 14 Dec 2014 07:00:28 +0100, Yao Qi wrote:
The build on mingw host is broken because mingw has no mkdtemp.

../../../git/gdb/compile/compile.c: In function 'get_compile_file_tempdir':
../../../git/gdb/compile/compile.c:194:3: error: implicit declaration of function 'mkdtemp' [-Werror=implicit-function-declaration]
   tempdir_name = mkdtemp (tname);
   ^
../../../git/gdb/compile/compile.c:194:16: error: assignment makes pointer from integer without a cast [-Werror]
   tempdir_name = mkdtemp (tname);
                ^
cc1: all warnings being treated as errors

In the end I have managed to test it by Wine myself:

$ wine build_win32/gdb/gdb.exe -q build_win32/gdb/gdb.exe -ex start -ex 'compile code 1' -ex 'set confirm no' -ex quit
[...]
Temporary breakpoint 1, main (argc=1, argv=0x241418) at ../../gdb/gdb.c:29
29        args.argc = argc;
Could not load libcc1.so: Module not found.

Even if it managed to load libcc1.so (it needs host-dependent name libcc1.dll)
then it would soon end up at least on:

default_infcall_mmap:
  error (_("This target does not support inferior memory allocation by mmap."));

As currently there is only:

linux-tdep.c:
  set_gdbarch_infcall_mmap (gdbarch, linux_infcall_mmap);

While one could debug Linux targets from MS-Windows host I find it somehow
overcomplicated now when we are trying to get it running at least on native
Linux x86*.

The 'compile' project needs a larger port effort to run on MS-Windows.

gdb/ChangeLog
2014-12-17  Jan Kratochvil  <jan.kratochvil@redhat.com>

	Fix MinGW compilation.
	* compile/compile.c (get_compile_file_tempdir): Call error if
	!HAVE_MKDTEMP.
	* config.in: Regenerate.
	* configure: Regenerate.
	* configure.ac (AC_CHECK_FUNCS): Add mkdtemp.

gdb/testsuite/ChangeLog
2014-12-17  Jan Kratochvil  <jan.kratochvil@redhat.com>

	Fix MinGW compilation.
	* gdb.compile/compile-ops.exp: Update untested message if
	!skip_compile_feature_tests.
	* gdb.compile/compile-setjmp.exp: Likewise.
	* gdb.compile/compile-tls.exp: Likewise.
	* gdb.compile/compile.exp: Likewise.
	* lib/gdb.exp (skip_compile_feature_tests): Check also "Command not
	supported on this host".
2014-12-17 20:09:02 +01:00
..
ada.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
append_gdb_boards_dir.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
cache.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
cell.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
cl_util.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
cl_util.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
compiler.c Add support to recognize clang. 2014-04-07 14:14:03 -07:00
compiler.cc Add support to recognize clang. 2014-04-07 14:14:03 -07:00
cp-support.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
d-support.exp Add gdb.dlang to the gdb testsuite for the purpose of creating D 2014-01-18 18:09:28 +00:00
dwarf.exp add some missing ops to DWARF assembler 2014-12-12 22:24:17 +01:00
fortran.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
future.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
gdb-guile.exp Add Guile as an extension language. 2014-02-09 19:40:01 -08:00
gdb-python.exp New python function gdb.lookup_objfile. 2014-12-12 09:48:13 -08:00
gdb-utils.exp Fix paginate-*.exp races 2014-07-25 10:07:38 +01:00
gdb.exp Fix MinGW compilation 2014-12-17 20:09:02 +01:00
gdbserver-support.exp gdbserver-support: Handle gdbserver start failures 2014-09-09 16:17:38 +01:00
go.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
java.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-support.exp gdbserver-support: Handle gdbserver start failures 2014-09-09 16:17:38 +01:00
objc.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
opencl.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
opencl_hostapp.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
opencl_kernel.cl
pascal.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
perftest.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
prelink-support.exp Error in build_executable_own_libs for non-native target 2014-09-30 11:42:56 +08:00
prompt.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
range-stepping-support.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
read1.c Integrate PR 12649's race detector directly in the testsuite machinery 2014-08-20 18:55:54 +01:00
selftest-support.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
set_unbuffered_mode.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
trace-support.exp Check tracefile is generated by binary execution 2014-04-22 09:57:44 +08:00