gdb/testsuite: fix minor things in jit tests
gdb/testsuite/ChangeLog: 2020-06-15 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> * gdb.base/jit-elf-so.exp: Refer to the global main_loader_basename variable. * gdb.base/jit-reader-simple.exp: Fix typo ("Built" -> "Build"), and use the already-defined 'options' variable.
This commit is contained in:
parent
40be168cc4
commit
ff08abb8a2
|
@ -1,3 +1,10 @@
|
||||||
|
2020-06-15 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
|
||||||
|
|
||||||
|
* gdb.base/jit-elf-so.exp: Refer to the global main_loader_basename
|
||||||
|
variable.
|
||||||
|
* gdb.base/jit-reader-simple.exp: Fix typo ("Built" -> "Build"),
|
||||||
|
and use the already-defined 'options' variable.
|
||||||
|
|
||||||
2020-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
|
2020-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||||
Tom de Vries <tdevries@suse.de>
|
Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ set jit_solib_srcfile ${srcdir}/${subdir}/${jit_solib_basename}.c
|
||||||
# On success, return 0.
|
# On success, return 0.
|
||||||
# On failure, return -1.
|
# On failure, return -1.
|
||||||
proc compile_jit_dlmain {options} {
|
proc compile_jit_dlmain {options} {
|
||||||
global main_loader_srcfile main_loader_binfile
|
global main_loader_srcfile main_loader_binfile main_loader_basename
|
||||||
set options [concat $options debug]
|
set options [concat $options debug]
|
||||||
|
|
||||||
if { [gdb_compile ${main_loader_srcfile} ${main_loader_binfile} \
|
if { [gdb_compile ${main_loader_srcfile} ${main_loader_binfile} \
|
||||||
|
|
|
@ -73,12 +73,12 @@ if {[build_shared_jit] == -1} {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Built the program that loads the JIT library.
|
# Build the program that loads the JIT library.
|
||||||
set srcfile_dl $testfile-dl.c
|
set srcfile_dl $testfile-dl.c
|
||||||
set binfile_dl $binfile-dl
|
set binfile_dl $binfile-dl
|
||||||
set options [list debug shlib=${binfile_lib}]
|
set options [list debug shlib=${binfile_lib}]
|
||||||
if {[gdb_compile ${srcdir}/${subdir}/${srcfile_dl} $binfile_dl executable \
|
if {[gdb_compile ${srcdir}/${subdir}/${srcfile_dl} $binfile_dl executable \
|
||||||
[list debug shlib=$binfile_lib]] == -1 } {
|
$options] == -1 } {
|
||||||
untested "failed to compile"
|
untested "failed to compile"
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue