[gdb/testsuite] add lib/jit-elf-helpers.exp
authorMihails Strasuns <mihails.strasuns@intel.com>
Mon, 17 Feb 2020 10:24:14 +0000 (11:24 +0100)
committerMihails Strasuns <mihails.strasuns@intel.com>
Tue, 12 May 2020 07:52:46 +0000 (09:52 +0200)
commitf80120719777e671e871434d727716355d6ab57d
treee0328391d206d1885114ccaa0945a9b3fa8ddf53
parent9a94694506c636f573b9194d9820fd4842b8fe51
[gdb/testsuite] add lib/jit-elf-helpers.exp

New utility library to be used by jit-elf tests responsible for
compiling binary artifacts. In the next commit the compilation process
will become more complicated because of extra mandatory flag - keeping
it in one place will make tests less fragile.

gdb/testsuite/ChangeLog:

2020-02-18  Mihails Strasuns  <mihails.strasuns@intel.com>

* lib/jit-elf-helpers.exp: New file.
* gdb.base/jit-elf.exp: Updated to use jit-elf-helpers.exp.
* gdb.base/jit-elf-so.exp: Updated to use jit-elf-helpers.exp.
gdb/testsuite/gdb.base/jit-elf-so.exp
gdb/testsuite/gdb.base/jit-elf.exp
gdb/testsuite/lib/jit-elf-helpers.exp [new file with mode: 0644]