aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2016-05-23 15:45:12 +0100
committerYao Qi <yao.qi@linaro.org>2016-05-23 15:50:56 +0100
commitffd19d610b3807bd5e2622440e225adb12a6766b (patch)
tree628b93980bf79d11143442d9b637f2406c6c5978 /gdb/testsuite/gdb.arch
parentd26a14db86600ccc1f05cbe35d99c6995475c271 (diff)
downloadgdb-ffd19d610b3807bd5e2622440e225adb12a6766b.zip
gdb-ffd19d610b3807bd5e2622440e225adb12a6766b.tar.gz
gdb-ffd19d610b3807bd5e2622440e225adb12a6766b.tar.bz2
Use standard_testfile in gdb.arch/thumb-prologue.exp and gdb.arch/thumb2-it.exp
This patch fixes the errors below: Running /home/yao/SourceCode/gnu/gdb/git/gdb/testsuite/gdb.arch/thumb-prologue.exp ... gdb compile failed, arm-linux-gnueabihf/bin/ld: cannot open output file /scratch/yao/gdb/build-git/arm-linux-gnueabihf/gdb/testsuite/gdb.arch/thumb-prologue: No such file or directory collect2: error: ld returned 1 exit status Running /home/yao/SourceCode/gnu/gdb/git/gdb/testsuite/gdb.arch/thumb2-it.exp ... gdb compile failed, arm-linux-gnueabihf/bin/ld: cannot open output file /scratch/yao/gdb/build-git/arm-linux-gnueabihf/gdb/testsuite/gdb.arch/thumb2-it: No such file or directory gdb/testsuite: 2016-05-23 Yao Qi <yao.qi@linaro.org> * gdb.arch/thumb-prologue.exp: Use standard_testfile. * gdb.arch/thumb2-it.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.arch')
-rw-r--r--gdb/testsuite/gdb.arch/thumb-prologue.exp4
-rw-r--r--gdb/testsuite/gdb.arch/thumb2-it.exp4
2 files changed, 2 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.arch/thumb-prologue.exp b/gdb/testsuite/gdb.arch/thumb-prologue.exp
index 8e45125..d37c4f6 100644
--- a/gdb/testsuite/gdb.arch/thumb-prologue.exp
+++ b/gdb/testsuite/gdb.arch/thumb-prologue.exp
@@ -20,9 +20,7 @@ if {![is_aarch32_target]} then {
return
}
-set testfile "thumb-prologue"
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile
# Don't use "debug", so that we don't have line information for the assembly
# fragments.
diff --git a/gdb/testsuite/gdb.arch/thumb2-it.exp b/gdb/testsuite/gdb.arch/thumb2-it.exp
index 65d11c1..5fb5dc3 100644
--- a/gdb/testsuite/gdb.arch/thumb2-it.exp
+++ b/gdb/testsuite/gdb.arch/thumb2-it.exp
@@ -20,9 +20,7 @@ if {![istarget arm*-*eabi*]} then {
return
}
-set testfile "thumb2-it"
-set srcfile ${testfile}.S
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile .S
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
untested thumb2-it.exp