]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* config/symbian.exp (symbian_compile): Fail after unknown options. gdb-csl-symbian-6_4_50_20060226-11
authorDaniel Jacobowitz <drow@false.org>
Wed, 23 Aug 2006 17:24:07 +0000 (17:24 +0000)
committerDaniel Jacobowitz <drow@false.org>
Wed, 23 Aug 2006 17:24:07 +0000 (17:24 +0000)
        Copy ELF files from the build tree.
        * gdb.asm/asm-source.exp: Use untested.

ChangeLog.csl
gdb/testsuite/config/symbian.exp
gdb/testsuite/gdb.asm/asm-source.exp

index 47391faaf984ed564a5cc5314ad5ebcda6b34d53..2eabc49f56a65f34c6158e8639695175c5f806e5 100644 (file)
@@ -1,3 +1,10 @@
+2006-08-23  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       gdb/testsuite/
+       * config/symbian.exp (symbian_compile): Fail after unknown options.
+       Copy ELF files from the build tree.
+       * gdb.asm/asm-source.exp: Use untested.
+
 2006-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
 
        gdb/testsuite/
index 95e4cc8b810cb09a702e04745a274f0fd7bec2c4..cb129c02bcc8e0700b98da4c09e99a75a13cf4b2 100644 (file)
@@ -70,6 +70,7 @@ proc symbian_compile { sources destfile type options } {
            append allflags " $flags"
        } else {
            warning "Compilation option $option not supported"
+           return -1
        }
     }
 
@@ -134,7 +135,19 @@ proc symbian_compile { sources destfile type options } {
     }
 
     file copy -force -- "$epocroot/epoc32/release/gcce/${reldir}/${proj}.exe" ${destfile}.exe
-    file copy -force -- "$epocroot/epoc32/release/gcce/${reldir}/${proj}.sym" ${destfile}
+
+    # Don't look for a .sym file in that same directory; UDEB has one but
+    # UREL doesn't.  Grab the .exe from the temporary build directory instead.
+    # file copy -force -- "$epocroot/epoc32/release/gcce/${reldir}/${proj}.sym" ${destfile}
+
+    set result [file native [file normalize [pwd]]]
+    if { [string first "C:" $result] != -1 } {
+       set result [string map {C: ""} $result]
+    } else {
+       # This appears to be a Unix-thinking sort of TCL.
+       set result "/cygwin/$result"
+    }
+    file copy -force -- "$epocroot/epoc32/BUILD$result/${proj}/gcce/${reldir}/${proj}.exe" ${destfile}
 
     # file delete "bld.inf"
     # file delete "${proj}.mmp"
index cbd38a45b366b0810631459bcabd37c1aefa6234..5797c440a4e57d9cbf8466297016c8bda4443e22 100644 (file)
@@ -230,10 +230,12 @@ regsub "--" "-gstabs\[+\]" "${debug-flags}" "-gstabs" debug-flags
 regsub "--" "-g\[0-9\]" "${debug-flags}" "" debug-flags
 
 if {[target_assemble ${srcdir}/${subdir}/${srcfile1} asmsrc1.o "${asm-flags} ${debug-flags}"] != ""} then {
-     gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
+    untested asm-source.exp
+    return -1
 }
 if {[target_assemble ${srcdir}/${subdir}/${srcfile2} asmsrc2.o "${asm-flags} ${debug-flags}"] != ""} then {
-     gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
+    untested asm-source.exp
+    return -1
 }
 
 # We deliberately don't use gdb_compile here to link together the