gdb/testsuite: fix minor things in jit tests
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Mon, 15 Jun 2020 07:07:07 +0000 (09:07 +0200)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Mon, 15 Jun 2020 07:07:07 +0000 (09:07 +0200)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/jit-elf-so.exp
gdb/testsuite/gdb.base/jit-reader-simple.exp

index d8ec5f001a81cb67cfe70148d31575c5db783f86..6fe1877132b9555b0829c27ae1e5548d2a6057af 100644 (file)
@@ -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>
            Tom de Vries  <tdevries@suse.de>
 
index 193d330acbb800da4a7c319e2e56937790b77f0b..7e29a99e208836e20ca10ec1ac9ec69505d0209d 100644 (file)
@@ -53,7 +53,7 @@ set jit_solib_srcfile ${srcdir}/${subdir}/${jit_solib_basename}.c
 # On success, return 0.
 # On failure, return -1.
 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]
 
     if { [gdb_compile ${main_loader_srcfile} ${main_loader_binfile} \
index c036e71c3fba3754046648b4fcae2c61afa82bd7..48bd326b53323eef4e1f823292ac31cad9c0021b 100644 (file)
@@ -73,12 +73,12 @@ if {[build_shared_jit] == -1} {
     return
 }
 
-# Built the program that loads the JIT library.
+# Build the program that loads the JIT library.
 set srcfile_dl $testfile-dl.c
 set binfile_dl $binfile-dl
 set options [list debug shlib=${binfile_lib}]
 if {[gdb_compile ${srcdir}/${subdir}/${srcfile_dl} $binfile_dl executable \
-        [list debug shlib=$binfile_lib]] == -1 } {
+        $options] == -1 } {
     untested "failed to compile"
     return -1
 }