Use standard_testfile in gdb.arch/thumb-prologue.exp and gdb.arch/thumb2-it.exp
authorYao Qi <yao.qi@linaro.org>
Mon, 23 May 2016 14:45:12 +0000 (15:45 +0100)
committerYao Qi <yao.qi@linaro.org>
Mon, 23 May 2016 14:50:56 +0000 (15:50 +0100)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/thumb-prologue.exp
gdb/testsuite/gdb.arch/thumb2-it.exp

index a773c6309e28fafc8ead90b184b8dd876611688c..2aadae090ae5e9f368a498c2593d5b459afe98dd 100644 (file)
@@ -1,3 +1,8 @@
+2016-05-23  Yao Qi  <yao.qi@linaro.org>
+
+       * gdb.arch/thumb-prologue.exp: Use standard_testfile.
+       * gdb.arch/thumb2-it.exp: Likewise.
+
 2016-05-18  Simon Marchi  <simon.marchi@ericsson.com>
 
        * gdb.mi/mi-threads-interrupt.c: New file.
index 8e45125eeda6a9dd4a9ec8f678086182a4caf677..d37c4f6209a8af22925dd224ea606b1ae06c0c2d 100644 (file)
@@ -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.
index 65d11c1f7382f2265db32b557cf33ad5159bb420..5fb5dc32dbbd9f84774621a18f89c10f47a6ac48 100644 (file)
@@ -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