diff options
author | Tom de Vries <tdevries@suse.de> | 2020-05-12 14:59:01 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-05-12 14:59:01 +0200 |
commit | c7c663418085fa497603bb04bb146a70010aade1 (patch) | |
tree | be6405ec293c8d348a9f16be12511418fb726737 /gold/tilegx.cc | |
parent | 1b59ca1cf1905a2c0d0b7e2e5ca8145bc0b39385 (diff) | |
download | gdb-c7c663418085fa497603bb04bb146a70010aade1.zip gdb-c7c663418085fa497603bb04bb146a70010aade1.tar.gz gdb-c7c663418085fa497603bb04bb146a70010aade1.tar.bz2 |
[gdb/testsuite] Fix incorrect string concat in jit-elf.exp
When running test-case gdb.base/jit-elf.exp with target board
cc-with-gdb-index, we get:
...
spawn -ignore SIGHUP gdb/contrib/cc-with-tweaks.sh -i gcc \
-fno-stack-protector src/gdb/testsuite/gdb.base/jit-elf-main.c \
-fdiagnostics-color=never -DATTACH=1 -DLOAD_ADDRESS=0x7000000 \
-DLOAD_INCREMENT=0x1000000 -g -lm \
-o outputs/gdb.base/jit-elf/jit-elf-main"-attach"^M
outputs/gdb.base/jit-elf/.tmp/jit-elf-main-attach: \
No such file or directory.^M
output is:
outputs/gdb.base/jit-elf/.tmp/jit-elf-main-attach: \
No such file or directory.^M
gdb compile failed, outputs/gdb.base/jit-elf/.tmp/jit-elf-main-attach: \
No such file or directory.
UNTESTED: gdb.base/jit-elf.exp: failed to compile jit-elf-main"-attach"
...
The problem is a string concat in jit-elf.exp:
...
${main_binfile}"-attach"
...
which is intended to generate string 'jit-elf-main-attach' but instead
generates string 'jit-elf-main"-attach"'.
Fix this by using "${main_binfile}-attach" instead.
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2020-05-12 Tom de Vries <tdevries@suse.de>
* gdb.base/jit-elf.exp: Fix string concat.
Diffstat (limited to 'gold/tilegx.cc')
0 files changed, 0 insertions, 0 deletions