mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 02:50:08 +08:00
Fix temp-dir leakage in per-bfd-sharing.exp
Whan using clang as compiler this compile step fails due to the unknown option "-Wl,--build-id". This leaks the already created temp-dir. Fixed by compiling first, and creating the temp-dir only when the compile succeeded. 2021-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de> * gdb.dwarf2/per-bfd-sharing.exp: Fix temp-dir leakage.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2021-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
|
||||||
|
|
||||||
|
* gdb.dwarf2/per-bfd-sharing.exp: Fix temp-dir leakage.
|
||||||
|
|
||||||
2021-06-02 Carl Love <cel@us.ibm.com>
|
2021-06-02 Carl Love <cel@us.ibm.com>
|
||||||
|
|
||||||
* gdb.threads/threadapply.c: Add global mybarrier.
|
* gdb.threads/threadapply.c: Add global mybarrier.
|
||||||
|
@ -18,6 +18,11 @@
|
|||||||
|
|
||||||
standard_testfile
|
standard_testfile
|
||||||
|
|
||||||
|
if { [build_executable "failed to prepare" $testfile $srcfile \
|
||||||
|
{debug additional_flags=-Wl,--build-id}] == -1 } {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
lassign [remote_exec host mktemp -d] ret cache_dir
|
lassign [remote_exec host mktemp -d] ret cache_dir
|
||||||
|
|
||||||
# The output of mktemp contains an end of line, remove it.
|
# The output of mktemp contains an end of line, remove it.
|
||||||
@ -30,11 +35,6 @@ if { $ret != 0 } {
|
|||||||
|
|
||||||
verbose -log "Index cache dir: $cache_dir"
|
verbose -log "Index cache dir: $cache_dir"
|
||||||
|
|
||||||
if { [build_executable "failed to prepare" $testfile $srcfile \
|
|
||||||
{debug additional_flags=-Wl,--build-id}] == -1 } {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
# Populate the index-cache.
|
# Populate the index-cache.
|
||||||
with_test_prefix "populate index cache" {
|
with_test_prefix "populate index cache" {
|
||||||
clean_restart
|
clean_restart
|
||||||
|
Reference in New Issue
Block a user