[gdb/testsuite] define jit function name via macro
authorMihails Strasuns <mihails.strasuns@intel.com>
Fri, 27 Mar 2020 10:21:01 +0000 (11:21 +0100)
committerMihails Strasuns <mihails.strasuns@intel.com>
Tue, 12 May 2020 07:52:46 +0000 (09:52 +0200)
commitaff4e759b8ad54df367e38ceaf16c92f680695a1
tree26d94167f17636e273c7853fcb76cdaf3700d99c
parent80ad340c90234f7294ee71468c984e7f853d9bb6
[gdb/testsuite] define jit function name via macro

Replaces previous approach with patching resulting ELF binary after
loading - now that each test iteration works on a separately compiled
binary it is not necessary anymore.

Tests are still being ran without debug info to preserve original test
functionality but this change opens up the possibility to enable debug
info if needed too.

gdb/testsuite/ChangeLog:

2020-03-27  Mihails Strasuns  <mihails.strasuns@intel.com>

* lib/jit-elf-helpers.exp: Supply -DFUNCTION_NAME macro
  definition when compiling jit-elf-solib.co.
* gdb.base/jit-elf-main.c: Stop patching jit function name.
* gdb.base/jit-elf-solib.c: Use FUNCTION_NAME macro value as a
  function name.
gdb/testsuite/gdb.base/jit-elf-main.c
gdb/testsuite/gdb.base/jit-elf-solib.c
gdb/testsuite/lib/jit-elf-helpers.exp