[gdb/testsuite] use args as lib list for jit-elf tests
authorMihails Strasuns via Gdb-patches <gdb-patches@sourceware.org>
Tue, 31 Mar 2020 17:13:51 +0000 (19:13 +0200)
committerMihails Strasuns <mihails.strasuns@intel.com>
Tue, 12 May 2020 07:52:46 +0000 (09:52 +0200)
commit9a94694506c636f573b9194d9820fd4842b8fe51
treedaf79b08ab75330e55effe78e4884010bdd75ef4
parent111b33f0b8d4872296bb0173bb82b0c5ddb9785d
[gdb/testsuite] use args as lib list for jit-elf tests

Old usage: jit-elf-main lib.so 2
New usage: jit-elf-main lib.so.1 lib.so.2

Refactoring necessary to support running tests over multiple jit
binaries rather than mapping the same binary muultiple times.

gdb/testsuite/ChangeLog:

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

* gdb.base/jit-elf-main.c: Read lib list from argc/argv.
* gdb.base/jit-elf.exp: Compile N jit libraries and use the list.
* gdb.base/jit-elf-so.exp: Ditto.
gdb/testsuite/gdb.base/jit-elf-main.c
gdb/testsuite/gdb.base/jit-elf-so.exp
gdb/testsuite/gdb.base/jit-elf.exp