8sa1-binutils-gdb/gdb/testsuite/lib
Joseph Myers 5643c500fe Fix Windows-target testing in gdb_file_cmd
GCC for Windows target produces executables called foo.exe when given
"-o foo".  (More specifically, it's done that for native compilers for
a long time, and for cross compilers to Windows target since GCC
commit 5bc86b599054f494ec0a45e49b82749320eaa9c4, in GCC 8 and later.)
This causes problems for many GDB tests expecting a program to have
the exact file name passed to -o.

Fix this by checking for the case where only the .exe exists in
gdb_file_cmd and adjusting the name passed to the file command
accordingly.  There may well be other places with this issue in the
GDB testsuite, but this fix allows many tests to succeed that
previously fell over.

2020-11-12  Joseph Myers  <joseph@codesourcery.com>

	* lib/gdb.exp (gdb_file_cmd): Check for case where $arg.exe exists
	but $arg does not.
2020-11-13 16:35:02 +00:00
..
ada.exp
append_gdb_boards_dir.exp
attributes.h Fix testcases using __attribute__((noclone)) with Clang 2020-11-02 11:52:41 +00:00
build-piece.exp
cache.exp
check-test-names.exp
cl_util.c
cl_util.h
compile-support.exp
compiler.c
compiler.cc
completion-support.exp gdb/breakpoint: add flags to 'condition' and 'break' commands to force condition 2020-10-27 11:00:57 +01:00
cp-support.exp
d-support.exp
data-structures.exp
dtrace.exp
dwarf.exp gdb/testsuite: make DWARF assembler's ranges' "base" and "range" procs 2020-11-06 13:10:29 -05:00
fortran.exp
future.exp
gdb-guile.exp
gdb-python.exp
gdb-utils.exp
gdb.exp Fix Windows-target testing in gdb_file_cmd 2020-11-13 16:35:02 +00:00
gdbserver-support.exp [gdb/testsuite] Detect gdb prompt after monitor exit 2020-09-16 14:53:26 +02:00
gen-perf-test.exp
gnat_debug_info_test.adb
go.exp
jit-elf-helpers.exp
memory.exp
mi-support.exp Fix some minor bugs in test suite command logging 2020-10-26 17:10:25 -06:00
objc.exp
opencl_hostapp.c
opencl_kernel.cl
opencl.exp
pascal.exp
pdtrace.in
perftest.exp
prelink-support.exp
prompt.exp
range-stepping-support.exp
read1.c
rust-support.exp
selftest-support.exp
set_unbuffered_mode.c
sym-info-cmds.exp
trace-support.exp
tuiterm.exp
unbuffer_output.c
valgrind.exp