diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2006-11-22 17:19:52 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2006-11-22 17:19:52 +0000 |
commit | c1d88655bbf33f050943125801b2bdc5d1a73b8d (patch) | |
tree | e86c319dabefa859a2a7fd0cb3f6dde84ccc3b07 /gdb/testsuite/gdb.asm | |
parent | 32a13b1aece8fc98a122ae52d1801d96781d66ac (diff) | |
download | gdb-c1d88655bbf33f050943125801b2bdc5d1a73b8d.zip gdb-c1d88655bbf33f050943125801b2bdc5d1a73b8d.tar.gz gdb-c1d88655bbf33f050943125801b2bdc5d1a73b8d.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/testsuite/gdb.asm')
-rw-r--r-- | gdb/testsuite/gdb.asm/asm-source.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.asm/spu.inc | 42 |
2 files changed, 47 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp index 2de43c9..3e6a4c7 100644 --- a/gdb/testsuite/gdb.asm/asm-source.exp +++ b/gdb/testsuite/gdb.asm/asm-source.exp @@ -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 index 0000000..aabceb8 --- /dev/null +++ b/gdb/testsuite/gdb.asm/spu.inc @@ -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 |