binutils-gdb/gdb/testsuite/lib
Tom de Vries d7445728b1 [gdb/testsuite] Handle missing gccgo
Without gccgo installed I see in stdout/stderr:
...
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.go/print.exp ...
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.go/handcall.exp ...
gdb compile failed, default_target_compile: Can't find gccgo.
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.go/max-depth.exp ...
gdb compile failed, default_target_compile: Can't find gccgo.
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.go/integers.exp ...
gdb compile failed, default_target_compile: Can't find gccgo.
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.go/unsafe.exp ...
gdb compile failed, default_target_compile: Can't find gccgo.
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.go/package.exp ...
gdb compile failed, default_target_compile: Can't find gccgo.
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.go/types.exp ...
gdb compile failed, default_target_compile: Can't find gccgo.
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.go/chan.exp ...
gdb compile failed, default_target_compile: Can't find gccgo.
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.go/strings.exp ...
gdb compile failed, default_target_compile: Can't find gccgo.
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.go/basic-types.exp ...
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.go/hello.exp ...
gdb compile failed, default_target_compile: Can't find gccgo.
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.go/methods.exp ...
gdb compile failed, default_target_compile: Can't find gccgo.
...

Fix this by introducing a gdb_caching_proc support_go_compile, and using it in
the complaining test-cases.

Tested on x86_64-linux, with and without gccgo installed.

gdb/testsuite/ChangeLog:

2020-02-20  Tom de Vries  <tdevries@suse.de>

	* lib/gdb.exp (support_go_compile): New gdb_caching_proc.
	(gdb_simple_compile): Handle compile_flags go by using .go extension
	for source file.
	* gdb.go/chan.exp: Use support_go_compile.
	* gdb.go/handcall.exp: Same.
	* gdb.go/hello.exp: Same.
	* gdb.go/integers.exp: Same.
	* gdb.go/max-depth.exp: Same.
	* gdb.go/methods.exp: Same.
	* gdb.go/package.exp: Same.
	* gdb.go/strings.exp: Same.
	* gdb.go/types.exp: Same.
	* gdb.go/unsafe.exp: Same.
2020-02-20 06:31:24 +01:00
..
ada.exp [gdb/testsuite] Handle missing gnatmake in gnat_runtime_has_debug_info 2020-02-18 10:18:36 +01:00
append_gdb_boards_dir.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
build-piece.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cache.exp [gdb/testsuite] Ignore pass in gdb_caching_proc 2020-02-19 07:05:13 +01:00
cl_util.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cl_util.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
compile-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
compiler.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
compiler.cc Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
completion-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cp-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
d-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
data-structures.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
dtrace.exp [gdb/testsuite] Be quiet about untested dtrace-prob.exp 2020-02-19 00:05:40 +01:00
dwarf.exp gdb/testsuite: Allow DWARF assembler to create multiple line tables 2020-01-13 23:56:02 +00:00
fortran.exp gdb/fortran: Allow for using Flang in Fortran testing 2020-02-04 17:17:20 +00:00
future.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
gdb-guile.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
gdb-python.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
gdb-utils.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
gdb.exp [gdb/testsuite] Handle missing gccgo 2020-02-20 06:31:24 +01:00
gdbserver-support.exp Have testsuite find gdbserver in new location 2020-02-14 14:14:38 -07:00
gen-perf-test.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
gnat_debug_info_test.adb [PATCH] Adjust test gdb.ada/ptype_tagged_param.exp for when GNAT runtime does not have debug info 2019-12-27 21:02:35 -05:00
go.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
memory.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
objc.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
opencl.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
opencl_hostapp.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
opencl_kernel.cl
pascal.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
pdtrace.in Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
perftest.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
prelink-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
prompt.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
range-stepping-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
read1.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
rust-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
selftest-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
set_unbuffered_mode.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
sym-info-cmds.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
trace-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tuiterm.exp gdb/tui: Place window titles in the center of the border 2020-01-13 22:56:48 +00:00
unbuffer_output.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
valgrind.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00