diff options
author | YunQiang Su <yunqiang.su@cipunited.com> | 2023-06-30 14:07:57 +0800 |
---|---|---|
committer | YunQiang Su <yunqiang.su@cipunited.com> | 2023-07-06 09:04:53 +0800 |
commit | 0f5cb49f68ae1be4b9702e71c3a9b80ee46b310a (patch) | |
tree | 4605aa0fd3412a675aa0bbef93f671ab1ad2982a /ld | |
parent | 96a73f2cb2a1b4c47e49ff194a94f7394308956b (diff) | |
download | gdb-0f5cb49f68ae1be4b9702e71c3a9b80ee46b310a.zip gdb-0f5cb49f68ae1be4b9702e71c3a9b80ee46b310a.tar.gz gdb-0f5cb49f68ae1be4b9702e71c3a9b80ee46b310a.tar.bz2 |
ld: Use run_host_cmd_yesno in indirect.exp instead of catch exec
Catch "exec $CC_FOR_TARGET" won't use the gas/ld that we just build,
and in fact run_host_cmd_yesno is a better choice for it.
ld/ChangeLog:
* testsuite/ld-elf/indirect.exp: use run_host_cmd_yesno
instead of handwrite catch exec $CC_FOR_TARGET.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ld-elf/indirect.exp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ld/testsuite/ld-elf/indirect.exp b/ld/testsuite/ld-elf/indirect.exp index eda48d3..de5d971 100644 --- a/ld/testsuite/ld-elf/indirect.exp +++ b/ld/testsuite/ld-elf/indirect.exp @@ -226,10 +226,7 @@ foreach t [list indirect5a indirect5b indirect6a indirect6b] { } } -send_log "$CC_FOR_TARGET -fPIE -pie $srcdir/$subdir/main.c -o tmpdir/pie" -catch "exec $CC_FOR_TARGET -fPIE -pie $srcdir/$subdir/main.c -o tmpdir/pie" exec_output -send_log "$exec_output" -if { ! [string match "" $exec_output] } { +if { ![run_host_cmd_yesno $CC_FOR_TARGET "-fPIC -pie $srcdir/$subdir/main.c -o tmpdir/pie"] } { return } |