aboutsummaryrefslogtreecommitdiff
path: root/bfd/corefile.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2020-05-12 14:41:47 +0200
committerTom de Vries <tdevries@suse.de>2020-05-12 14:41:47 +0200
commit1b59ca1cf1905a2c0d0b7e2e5ca8145bc0b39385 (patch)
treec5497e50ec5eafdc1167acf5686cff0320b3a6b4 /bfd/corefile.c
parent533f049e00492f00803c633fbd87a3f985000b22 (diff)
downloadgdb-1b59ca1cf1905a2c0d0b7e2e5ca8145bc0b39385.zip
gdb-1b59ca1cf1905a2c0d0b7e2e5ca8145bc0b39385.tar.gz
gdb-1b59ca1cf1905a2c0d0b7e2e5ca8145bc0b39385.tar.bz2
[gdb/testsuite] Fix tcl error in jit-elf-helpers.exp
When running test-case jit-elf.exp with target board cc-with-gdb-index, I run into: ... gdb compile failed, outputs/gdb.base/jit-elf/.tmp/jit-elf-main-attach: \ No such file or directory. ERROR: tcl error sourcing src/gdb/testsuite/gdb.base/jit-elf.exp. ERROR: can't read "main_basename": no such variable while executing "untested "failed to compile ${main_basename}.c"" (procedure "compile_jit_main" line 7) ... The problem is in compile_jit_main in lib/jit-elf-helpers.exp, where we try to emit an untested message using global variable main_basename.c. Fixing this by declaring the variable global results in duplicate test-names, because the same source file is compiled more than once. Instead, fix this by using the result name in the untested message. Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2020-05-12 Tom de Vries <tdevries@suse.de> * lib/jit-elf-helpers.exp: Don't use undefined variables in untested messages.
Diffstat (limited to 'bfd/corefile.c')
0 files changed, 0 insertions, 0 deletions