binutils-gdb/gdb/testsuite/lib
Tom de Vries 4281b0c8fc [gdb/testsuite] Fix options arg handling in compile_jit_elf_main_as_so
In commit 80ad340c90 ("[gdb/testsuite] use -Ttext-segment for jit-elf tests")
the following change was made:
...
 proc compile_jit_elf_main_as_so {main_solib_srcfile main_solib_binfile options} {
-    set options [concat $options debug]
+    global jit_load_address jit_load_increment
+
+    set options [list \
+       additional_flags="-DMAIN=jit_dl_main" \
+       additional_flags=-DLOAD_ADDRESS=$jit_load_address \
+       additional_flags=-DLOAD_INCREMENT=$jit_load_increment \
+       debug]
...

Before the change, the options argument was used, but after the change not
anymore.

Fix this by reverting back to using "set options [concat $options ...]".

Fixing this gets us twice the -DMAIN=jit_dl_main bit, once from a caller, and
once from compile_jit_elf_main_as_so.  Fix this by removing the bit from
compile_jit_elf_main_as_so, which makes the code similar to compile_jit_main.

Tested on x86_64-linux.
2021-12-07 09:44:36 +01:00
..
ada.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
append_gdb_boards_dir.exp
attributes.h
build-piece.exp
cache.exp
check-test-names.exp [gdb/testsuite] Check for valid test name 2021-09-13 21:41:13 +02:00
cl_util.c
cl_util.h
compile-support.exp
compiler.c
compiler.cc
completion-support.exp
cp-support.exp [gdb/testsuite] Fix gdb.cp/nested-types.exp with check-read1 2021-06-10 07:36:19 +02:00
d-support.exp
data-structures.exp
dtrace.exp
dwarf.exp [gdb/testsuite] Fix typo in proc lines 2021-11-29 09:51:10 +01:00
fortran.exp gdb/testsuite: escape '*' character in pattern used by flang 2021-06-02 10:12:02 +01:00
future.exp
gdb-guile.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
gdb-python.exp gdb/testsuite: check the python module is available before using it 2021-11-30 13:05:57 +00:00
gdb-utils.exp [gdb/testsuite] Add string_list_to_regexp 2021-09-10 17:16:48 +02:00
gdb.exp gdb/testsuite: update tests looking for "DWARF 2" debug format 2021-12-02 11:54:51 -05:00
gdbserver-support.exp
gen-perf-test.exp
gnat_debug_info_test.adb
go.exp
jit-elf-helpers.exp [gdb/testsuite] Fix options arg handling in compile_jit_elf_main_as_so 2021-12-07 09:44:36 +01:00
memory.exp
mi-support.exp [gdb/testsuite] Handle runto fail in gdb.mi/mi-var-cp.exp 2021-11-19 15:55:16 +01:00
my-syscalls.h
my-syscalls.S
objc.exp
opencl.exp
opencl_hostapp.c
opencl_kernel.cl
pascal.exp
pdtrace.in
perftest.exp Fix all PATH problems in testsuite/gdb.perf/ 2021-09-24 17:35:37 +01:00
precise-aligned-alloc.c [gdb/testsuite] Use precise align in gdb.arch/i386-{avx,sse}.exp 2021-12-06 16:01:47 +01:00
prelink-support.exp
prompt.exp
range-stepping-support.exp
read1.c [gdb/testsuite] Add check-readmore 2021-10-09 18:53:12 +02:00
rust-support.exp [gdb/testsuite] Support -fPIE/-fno-PIE/-pie/-no-pie in gdb_compile_rust 2021-09-23 22:52:51 +02:00
selftest-support.exp [gdb/testsuite] Add untested case in selftest_setup 2021-09-03 14:45:53 +02:00
set_unbuffered_mode.c
sym-info-cmds.exp
trace-support.exp
tuiterm.exp [gdb/testsuite] Fix FAIL in gdb.tui/corefile-run.exp 2021-10-06 11:26:38 +02:00
unbuffer_output.c
valgrind.exp