[gdb/testsuite] structured rename of jit test files

Reorganizes how JIT related test files to be more clear what are related
to JIT reader system tests and what use JIT from ELF objfiles. Those two
approaches are quite different in GDB implementation and require very
different test setup. Keeping distinction clear at the file name level
makes it easier to maintain the testsuite.

gdb/testsuite/ChangeLog:

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

	* gdb.base: Rename all jit related test and source files.
This commit is contained in:
Mihails Strasuns 2020-02-11 13:23:25 +01:00
parent f49c464f93
commit 922a7c7c5d
16 changed files with 13 additions and 13 deletions

View File

@ -30,7 +30,7 @@ if {[get_compiler_info]} {
# test running programs
#
set testfile jit-dlmain
set testfile jit-elf-dlmain
set srcfile ${testfile}.c
set binfile [standard_output_file ${testfile}]
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug shlib_load}] != "" } {
@ -38,7 +38,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
return -1
}
set testfile2 jit-main
set testfile2 jit-elf-main
set srcfile2 ${testfile2}.c
set binfile2 [standard_output_file ${testfile2}.so]
set binfile2_dlopen [shlib_target_file ${testfile2}.so]
@ -47,7 +47,7 @@ if { [gdb_compile_shlib "${srcdir}/${subdir}/${srcfile2}" ${binfile2} {debug add
return -1
}
set solib_testfile "jit-solib"
set solib_testfile "jit-elf-solib"
set solib_srcfile "${srcdir}/${subdir}/${solib_testfile}.c"
set solib_binfile [standard_output_file ${solib_testfile}.so]
set solib_binfile_test_msg "SHLIBDIR/${solib_testfile}.so"

View File

@ -33,7 +33,7 @@ proc compile_jit_test {testname binsuffix options} {
global solib_testfile solib_srcfile solib_binfile solib_binfile_test_msg
global solib_binfile_target
set testfile jit-main
set testfile jit-elf-main
set srcfile ${testfile}.c
set binfile [standard_output_file $testfile$binsuffix]
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
@ -42,7 +42,7 @@ proc compile_jit_test {testname binsuffix options} {
return -1
}
set solib_testfile "jit-solib"
set solib_testfile "jit-elf-solib"
set solib_srcfile "${srcdir}/${subdir}/${solib_testfile}.c"
set solib_binfile [standard_output_file ${solib_testfile}$binsuffix.so]
set solib_binfile_test_msg "SHLIBDIR/${solib_testfile}$binsuffix.so"

View File

@ -17,7 +17,7 @@
/* Simple standalone program using the JIT API. */
#include "jit-simple-jit.c"
#include "jit-reader-simple-jit.c"
#include <unistd.h>
int

View File

@ -21,9 +21,9 @@ if { ![istarget "*-linux*"] } then {
return
}
standard_testfile jit-exec.c
standard_testfile jit-reader-exec.c
set testfile2 "jit-execd"
set testfile2 "jit-reader-execd"
set srcfile2 ${testfile2}.c
set binfile2 [standard_output_file ${testfile2}]

View File

@ -23,7 +23,7 @@
#include <sys/mman.h>
#include JIT_READER_H /* Please see jit-reader.exp for an explanation. */
#include "jithost.h"
#include "jit-reader-host.h"
#include "jit-protocol.h"
void __attribute__((noinline)) __jit_debug_register_code () { }

View File

@ -17,7 +17,7 @@
/* Simple standalone program using the JIT API. */
#include "jit-simple-jit.c"
#include "jit-reader-simple-jit.c"
int
main (void)

View File

@ -21,7 +21,7 @@
#include <string.h>
#include JIT_READER_H /* Please see jit-reader.exp for an explanation. */
#include "jithost.h"
#include "jit-reader-host.h"
GDB_DECLARE_GPL_COMPATIBLE_READER;

View File

@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
standard_testfile jithost.c
standard_testfile jit-reader-host.c
if { (![istarget x86_64-*-*] && ![istarget i?86-*-*]) || ![is_lp64_target] } {
return -1;
@ -47,7 +47,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${jit_host_src}" "${jit_host_bin}" \
return -1
}
set jit_reader jitreader
set jit_reader jit-reader
set jit_reader_src ${jit_reader}.c
set jit_reader_bin [standard_output_file ${jit_reader}.so]