diff options
author | Tom de Vries <tdevries@suse.de> | 2020-03-09 15:32:54 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-03-09 15:32:54 +0100 |
commit | 0ba678c9ae62c20bb7f2370f51a4e9f1c8f2f409 (patch) | |
tree | ac2a462f62ed6a3f90f2b74d9745097bec0a0882 /gdb/stack.c | |
parent | 95099889938ef50922779a0db03f277eea8747b5 (diff) | |
download | binutils-0ba678c9ae62c20bb7f2370f51a4e9f1c8f2f409.zip binutils-0ba678c9ae62c20bb7f2370f51a4e9f1c8f2f409.tar.gz binutils-0ba678c9ae62c20bb7f2370f51a4e9f1c8f2f409.tar.bz2 |
[gdb/testsuite] Fix tcl error in cached_file
When trying to run tests using target board cc-with-dwz after a clean build, I
run into:
...
ERROR: tcl error sourcing board description file for target cc-with-tweaks.exp.
couldn't open "build/gdb/testsuite/cache/gdb.sh.17028": \
no such file or directory
couldn't open "build/gdb/testsuite/cache/gdb.sh.17028": \
no such file or directory
while executing
"open $tmp_filename w"
(procedure "cached_file" line 9)
invoked from within
"cached_file gdb.sh "$GDB $INTERNAL_GDBFLAGS $GDBFLAGS \"\$@\"" 1"
...
The problem is that cached_file is trying to create a file
build/gdb/testsuite/cache/gdb.sh.17028 in a non-existing directory.
Fix this by creating the cache dir in cached_file.
Tested on x86_64-linux, with target board cc-with-tweaks, and native.
gdb/testsuite/ChangeLog:
2020-03-09 Tom de Vries <tdevries@suse.de>
* lib/gdb.exp (cached_file): Create cache dir.
Diffstat (limited to 'gdb/stack.c')
0 files changed, 0 insertions, 0 deletions