binutils-gdb/gdb/testsuite/config
Andrew Burgess 7cde5fc2ec gdb/testsuite: Prepare for DejaGnu 1.6.2
Changes in DejaGnu 1.6.2 mean that our testsuite will no longer run.
This is because of some confusion over how the gdb.exp file is
handled.

The gdb.exp file is really the tool init file, which is loaded from
within the DejaGnu core, and it should not be loaded directly from any
other file in the testsuite.

DejaGnu tries to prevent the same library being loaded twice by
remembering the names of library files as they are loaded.  Until
recently loading the tool init file in DejaGnu was very similar to
loading a library file, as a result, loading the gdb.exp tool init
file simply recorded 'gdb.exp' as having been loaded, future attempts
to load 'gdb.exp' as a library would then be ignored (as the file was
marked as already loaded).

DejaGnu has now changed so that it supports having both a tool init
file and a library with the same name, something that was not possible
before.  What this means however is that when the core loads the
'gdb.exp' tool init file it no longer marks the library 'gdb.exp' as
having been loaded.  When we then execute 'load_lib gdb.exp' we then
try to reload the 'gdb.exp' file.

Unfortunately our gdb.exp file can only be loaded once.  It use of
'rename cd builtin_cd' means that a second attempt to load this file
will fail.

This was discussed on the DejaGnu list here:
   http://lists.gnu.org/archive/html/dejagnu/2019-03/msg00000.html

and the suggested advice is that, unless we have some real requirement
to load the tool init file twice, we should remove calls to 'load_lib
gdb.exp' and rely on DejaGnu to load the file for us, which is what
this patch does.

I've tested with native X86-64/GNU Linux and see no regressions.

gdb/testsuite/ChangeLog:

	* config/default.exp: Remove 'load_lib gdb.exp'.
	* config/monitor.exp: Likewise.
	* config/sid.exp: Likewise.
	* config/sim.exp: Likewise.
	* config/slite.exp: Likewise.
	* config/unix.exp: Likewise.
	* gdb.base/default.exp: Remove unhelpful comment.
2019-03-12 19:50:43 +00:00
..
arm-ice.exp
bfin.exp
cfdbug.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cygmon.exp
d10v.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
default.exp gdb/testsuite: Prepare for DejaGnu 1.6.2 2019-03-12 19:50:43 +00:00
dve.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
extended-gdbserver.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
gdbserver.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
h8300.exp
i386-bozo.exp
i960.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
m32r.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-idt.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mn10300-eval.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
monitor.exp gdb/testsuite: Prepare for DejaGnu 1.6.2 2019-03-12 19:50:43 +00:00
proelf.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
rom68k.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sh.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sid.exp gdb/testsuite: Prepare for DejaGnu 1.6.2 2019-03-12 19:50:43 +00:00
sim.exp gdb/testsuite: Prepare for DejaGnu 1.6.2 2019-03-12 19:50:43 +00:00
slite.exp gdb/testsuite: Prepare for DejaGnu 1.6.2 2019-03-12 19:50:43 +00:00
unix.exp gdb/testsuite: Prepare for DejaGnu 1.6.2 2019-03-12 19:50:43 +00:00
vr4300.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
vr5000.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00