binutils-gdb/gdb/testsuite/boards
Tom de Vries 36cd4ba598 [gdb/testsuite] Fix gdb.base/break-probes.exp with native-gdbserver
When running break-probes.exp with native-gdbserver, we run into:
...
FAIL: gdb.base/break-probes.exp: run til our library loads (the program exited)
FAIL: gdb.base/break-probes.exp: call (int) foo(23)
...
due to the fact that we're trying to match:
...
Inferior loaded /data/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.base\
  /break-probes/break-probes-solib.so
...
using pattern:
...
Inferior loaded $sysroot$binfile_lib
...
which expands into:
...
Inferior loaded //data/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.base\
  /break-probes/break-probes-solib.so
...

Fix by setting sysroot to "" in local-board.exp.

Tested on x86_64-linux with native-gdbserver.

gdb/testsuite/ChangeLog:

2019-04-18  Tom de Vries  <tdevries@suse.de>

	PR gdb/24433
	* boards/local-board.exp: Set sysroot to "".
2019-04-18 23:37:33 +02:00
..
cc-with-dwz-m.exp [gdb/testsuite] Add cc-with-dwz.exp and cc-with-dwz-m.exp 2019-04-11 19:13:05 +02:00
cc-with-dwz.exp [gdb/testsuite] Add cc-with-dwz.exp and cc-with-dwz-m.exp 2019-04-11 19:13:05 +02:00
cc-with-tweaks.exp [gdb/testsuite] Add cc-with-dwz.exp and cc-with-dwz-m.exp 2019-04-11 19:13:05 +02:00
dwarf4-gdb-index.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
fission-dwp.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
fission.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
gdbserver-base.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
local-board.exp [gdb/testsuite] Fix gdb.base/break-probes.exp with native-gdbserver 2019-04-18 23:37:33 +02:00
local-remote-host-native.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
local-remote-host-notty.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
local-remote-host.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
native-extended-gdbserver.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
native-gdbserver.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
native-stdio-gdbserver.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
remote-gdbserver-on-localhost.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
remote-stdio-gdbserver.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
stabs.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
stdio-gdbserver-base.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00