old-cross-binutils/gdb/testsuite/gdb.server
Yao Qi b1b53fb3ef Fix fail in gdb.server/solib-list.exp
If I run single test solib-list.exp, it is OK.  If I run two, as below,
there are fails,

$ make check RUNTESTFLAGS="server-run.exp solib-list.exp"
FAIL: gdb.server/solib-list.exp: non-stop 0: continue (the program exited)
FAIL: gdb.server/solib-list.exp: non-stop 0: p libvar
FAIL: gdb.server/solib-list.exp: non-stop 1: continue (the program exited)
FAIL: gdb.server/solib-list.exp: non-stop 1: p libvar

in gdb.log,

/scratch/yao/gdb/build-git/x86_64/gdb/testsuite/../../gdb/gdbserver/gdbserver --once :2347 /scratch/yao/gdb/build-git/x86_64/gdb/testsuite/outputs/gdb.server/server-run/server-run /lib64/ld-linux-x86-64.so.2 /scratch/yao/gdb/build-git/x86_64/gdb/testsuite/outputs/gdb.server/solib-list/solib-list

server-run is spawned, which is wrong.  If I only run solib-list.exp, ld-linux
is spawned, which is right.

/scratch/yao/gdb/build-git/x86_64/gdb/testsuite/../../gdb/gdbserver/gdbserver --once :2346 /lib64/ld-linux-x86-64.so.2 /scratch/yao/gdb/build-git/x86_64/gdb/testsuite/outputs/gdb.server/solib-list/solib-list

in test, we spawn gdbserver this way,

    # Note we pass ${interp_system}, the program gdbserver spawns, as
    # argument here, instead of using gdb_load, because we don't want
    # to download the interpreter to the target (it's already there)
    # or to the test output directory.
    set res [gdbserver_spawn "${interp_system} ${remote_binfile}"]

in gdbserver_spawn -> gdbserver_download_current_prog, if
last_loaded_file is set (when you run multiple tests), it is
returned.

This patch is to unset last_loaded_file in solib-list.exp.

gdb/testsuite:

2016-07-21  Yao Qi  <yao.qi@linaro.org>

	* gdb.server/solib-list.exp: Unset last_loaded_file.
2016-07-21 09:15:21 +01:00
..
connect-stopped-target.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
connect-stopped-target.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
connect-with-no-symbol-file.c Test GDB connection to GDBserver with no symbol files 2016-04-13 15:22:14 -05:00
connect-with-no-symbol-file.exp Test GDB connection to GDBserver with no symbol files 2016-04-13 15:22:14 -05:00
connect-without-multi-process.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
connect-without-multi-process.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ext-attach.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ext-attach.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ext-restart.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ext-run.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ext-wrapper.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
file-transfer.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
no-thread-db.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
no-thread-db.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
non-existing-program.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
server-exec-info.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
server-kill.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
server-kill.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
server-mon.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
server-run.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
server.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
solib-list-lib.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
solib-list-main.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
solib-list.exp Fix fail in gdb.server/solib-list.exp 2016-07-21 09:15:21 +01:00
transfer.txt
wrapper.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
wrapper.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00