* gdb.asm/asm-source.exp: Add "spu*-*-*" target.
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 22 Nov 2006 17:19:52 +0000 (17:19 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Wed, 22 Nov 2006 17:19:52 +0000 (17:19 +0000)
* gdb.asm/spu.inc: New file.
* gdb.base/term.exp: Disable if [target_info exists noargs].
* gdb.gdb/complaints.exp: Disable if ![isnative].
* gdb.gdb/selftest.exp: Likewise.
* gdb.gdb/observer.exp: Likewise.
* gdb.gdb/xfullpath.exp: Likewise.
* gdb.base/attach.exp: Disable on SPU target.
* gdb.cp/bs145503.exp: Likewise.
* gdb.cp/exception.exp: Likewise.
* gdb.cp/userdef.exp: Likewise.

12 files changed:
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.asm/asm-source.exp
gdb/testsuite/gdb.asm/spu.inc [new file with mode: 0644]
gdb/testsuite/gdb.base/attach.exp
gdb/testsuite/gdb.base/term.exp
gdb/testsuite/gdb.cp/bs15503.exp
gdb/testsuite/gdb.cp/exception.exp
gdb/testsuite/gdb.cp/userdef.exp
gdb/testsuite/gdb.gdb/complaints.exp
gdb/testsuite/gdb.gdb/observer.exp
gdb/testsuite/gdb.gdb/selftest.exp
gdb/testsuite/gdb.gdb/xfullpath.exp

index 4cf0816cd0e49b29ee85bec548980a73cea1db97..68b7c95febd9a7f1a9a62f12909e45b711af5b2e 100644 (file)
@@ -1,3 +1,17 @@
+2006-11-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.asm/asm-source.exp: Add "spu*-*-*" target.
+       * gdb.asm/spu.inc: New file.
+       * gdb.base/term.exp: Disable if [target_info exists noargs].
+       * gdb.gdb/complaints.exp: Disable if ![isnative].
+       * gdb.gdb/selftest.exp: Likewise.
+       * gdb.gdb/observer.exp: Likewise.
+       * gdb.gdb/xfullpath.exp: Likewise.
+       * gdb.base/attach.exp: Disable on SPU target.
+       * gdb.cp/bs145503.exp: Likewise.
+       * gdb.cp/exception.exp: Likewise.
+       * gdb.cp/userdef.exp: Likewise.
+
 2006-11-22  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * gdb.stabs/weird.exp (print_weird_var): Don't send extra \n.
index 2de43c98386de6ea2d702d0ade2335d551ad6d96..3e6a4c7c451e7fda4c3a259c318aadf4055fb723 100644 (file)
@@ -120,6 +120,11 @@ switch -glob -- [istarget] {
         set asm-flags "-xarch=v9 -I${srcdir}/${subdir} -I${objdir}/${subdir}"
        set debug-flags "-gdwarf-2"
     }
+    "spu*-*-*" {
+       set asm-arch spu
+       set asm-flags "-I${srcdir}/${subdir} -I${objdir}/${subdir} --no-warn"
+       set debug-flags "-gdwarf-2"
+    }
     "xstormy16-*-*" {
         set asm-arch xstormy16
        set debug-flags "-gdwarf-2"
diff --git a/gdb/testsuite/gdb.asm/spu.inc b/gdb/testsuite/gdb.asm/spu.inc
new file mode 100644 (file)
index 0000000..aabceb8
--- /dev/null
@@ -0,0 +1,42 @@
+       comment "subroutine prologue"
+       .macro gdbasm_enter
+       stqd    $lr, 16($sp)
+       stqd    $sp, -32($sp)
+       ai      $sp, $sp, -32
+       .endm
+
+       comment "subroutine epilogue"
+       .macro gdbasm_leave
+       ai      $sp, $sp, 32
+       lqd     $lr, 16($sp)
+       bi      $lr     
+       .endm
+
+       .macro gdbasm_call subr
+       brsl    $lr, \subr
+       .endm
+
+       .macro gdbasm_several_nops
+       nop
+       nop
+       nop
+       nop
+       .endm
+
+       comment "exit (0)"
+       .macro gdbasm_exit0
+       stop    0x2000
+       stop 
+       stop 
+       stop 
+       .endm
+
+       comment "startup"
+       .macro gdbasm_startup
+       il      $0, 0
+       ila     $sp, 16368
+       stqd    $0, 0($sp)
+       stqd    $sp, -32($sp)
+       ai      $sp, $sp, -32
+       stqd    $0, 16($sp)
+       .endm
index 8599727b13bc7f179a9e66c75b0c228a564fd325..8d8d0a84068e0d2e148dfbf795b5d67bb81db300 100644 (file)
@@ -32,6 +32,11 @@ if { [istarget "hppa*-*-hpux*"] } {
     return 0
 }
 
+# On SPU, this test currently fails because "sleep" is not supported.
+if { [istarget "spu*-*-*"] } {
+       return 0
+}
+
 # are we on a target board
 if [is_remote target] then {
     return 0
index 0fd1cc0ab2c9d9303f254fd00f6d61835d248bca..5a85a3553f8d466419ff5ac1395413205706d4ff 100644 (file)
@@ -29,6 +29,11 @@ if [is_remote target] then {
     continue
 }
 
+if [target_info exists noargs] then {
+    verbose "Skipping term.exp because of noargs."
+    return
+}
+
 gdb_start
 
 #
index aa11adab002e575f333fa52cc8d991f80e319183..fe68f91225767e79404cc881aa40a8f6614bab22 100644 (file)
@@ -24,6 +24,11 @@ if $tracelevel {
 
 if { [skip_cplus_tests] } { continue }
 
+# On SPU this test fails because the executable exceeds local storage size.
+if { [istarget "spu*-*-*"] } {
+        return 0
+}
+
 set testfile "bs15503"
 set srcfile ${testfile}.cc
 set binfile ${objdir}/${subdir}/${testfile}
index 655d39037eeccd0cbf97cd8b63e83d089161a6ad..a56c8fae97e9f2d8eae77ff4cbbf66cd86842663 100644 (file)
@@ -44,6 +44,11 @@ if $tracelevel then {
 
 if { [skip_cplus_tests] } { continue }
 
+# On SPU this test fails because the executable exceeds local storage size.
+if { [istarget "spu*-*-*"] } {
+        return 0
+}
+
 set testfile "exception"
 set srcfile ${testfile}.cc
 set binfile ${objdir}/${subdir}/${testfile}
index 782045ee1b0675257537bd39c5b3507901f3099d..d40666135d196a9091891a90db48c7cd2253fd41 100644 (file)
@@ -27,6 +27,11 @@ if $tracelevel then {
 
 if { [skip_cplus_tests] } { continue }
 
+# On SPU this test fails because the executable exceeds local storage size.
+if { [istarget "spu*-*-*"] } {
+        return 0
+}
+
 set testfile "userdef"
 set srcfile ${testfile}.cc
 set binfile ${objdir}/${subdir}/${testfile}
index 2dd1508fed66676b1eb8e9d6f6b5998632d0a58c..2cf142aca327ef5ff96e4e3202bb62a4441a77c4 100644 (file)
@@ -27,7 +27,7 @@ set prms_id 0
 set bug_id 0
 
 # are we on a target board
-if [is_remote target] {
+if { [is_remote target] || ![isnative] } then {
     return
 }
 
index b6d43b57599032e6cda7bb07829b4f96d15d4db5..5b3a79848b3d0c5b7568345807cbb4469dc2b929 100644 (file)
@@ -25,7 +25,7 @@ set prms_id 0
 set bug_id 0
 
 # are we on a target board
-if [is_remote target] {
+if { [is_remote target] || ![isnative] } then {
     return
 }
 
index 4a1ef0de3a733275f1bfb493658a954a9611dbba..201bd38e667b9c13190fa3db15537fc8d0f6ec1a 100644 (file)
@@ -25,7 +25,7 @@ set prms_id 0
 set bug_id 0
 
 # are we on a target board
-if [is_remote target] {
+if { [is_remote target] || ![isnative] } then {
     return
 }
 
index 570b311295f0169aac927395e5db391791df94b1..971a05ec5883841a29960fe71c542de6f08555cf 100644 (file)
@@ -26,7 +26,7 @@ set prms_id 0
 set bug_id 0
 
 # are we on a target board
-if [is_remote target] {
+if { [is_remote target] || ![isnative] } then {
     return
 }