[gdb/testsuite] Factor out lib/valgrind.exp
authorTom de Vries <tdevries@suse.de>
Thu, 25 Oct 2018 14:54:49 +0000 (16:54 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 31 Oct 2018 17:26:40 +0000 (18:26 +0100)
commit68b9ac18cf6ae8d76828357982c106d57c695ad4
tree00d1559642acef1cf21c27966ceb6879c36c4eb6
parent0b4d000cc4e8e77c823e43fb547aa5e3a7247e87
[gdb/testsuite] Factor out lib/valgrind.exp

Factor out common code related to vgdb setup and cleanup in valgrind-bt.exp,
valgrind-disp-step.exp and gdb.base/valgrind-infcall.exp.

Tested on x86_64-linux with and without --target_board=native-gdbserver.

2018-10-31  Tom de Vries  <tdevries@suse.de>

* lib/valgrind.exp: New file.
 (vgdb_start, vgdb_stop): New procs, factored out of ...
* gdb.base/valgrind-bt.exp: ... here, ...
* gdb.base/valgrind-disp-step.exp: ... here and ...
* gdb.base/valgrind-infcall.exp: ... here.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/valgrind-bt.exp
gdb/testsuite/gdb.base/valgrind-disp-step.exp
gdb/testsuite/gdb.base/valgrind-infcall.exp
gdb/testsuite/lib/valgrind.exp [new file with mode: 0644]