This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 3/5] testsuite for nds32
- From: Wei-cheng Wang <cole945 at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 8 Jul 2013 17:32:41 +0800
- Subject: [PATCH 3/5] testsuite for nds32
2013-07-08 Wei-Cheng Wang <cole945@gmail.com>
* gdb.base/float.exp: Add nds32*-*.
* gdb.xml/tdesc-regs.exp: Add nds32*-*.
---
diff --git a/gdb/testsuite/gdb.base/float.exp b/gdb/testsuite/gdb.base/float.exp
index 85711ad..bcedf6b 100644
--- a/gdb/testsuite/gdb.base/float.exp
+++ b/gdb/testsuite/gdb.base/float.exp
@@ -76,6 +76,15 @@ if { [istarget "alpha*-*-*"] } then {
pass "info float (without FPU)"
}
}
+} elseif [istarget "nds32*-*"] then {
+ gdb_test_multiple "info float" "info_float" {
+ -re "fd0.*fd3.*$gdb_prompt $" {
+ pass "info float (with FPU)"
+ }
+ -re "No floating.point info available for this processor.*" {
+ pass "info float (without FPU)"
+ }
+ }
} elseif [istarget "s390*-*-*"] then {
gdb_test "info float" "fpc.*f0.*f1.*f15.*" "info float"
} elseif [istarget "sh*-*"] then {
diff --git a/gdb/testsuite/gdb.xml/tdesc-regs.exp
b/gdb/testsuite/gdb.xml/tdesc-regs.exp
index 533812f..c8986ef 100644
--- a/gdb/testsuite/gdb.xml/tdesc-regs.exp
+++ b/gdb/testsuite/gdb.xml/tdesc-regs.exp
@@ -36,6 +36,9 @@ switch -glob -- [istarget] {
"mips*-*-*" {
set core-regs {mips-cpu.xml mips-cp0.xml mips-fpu.xml mips-dsp.xml}
}
+ "nds32*-*" {
+ set core-regs {nds32-core.xml}
+ }
"nios2-*-*" {
set core-regs {nios2-cpu.xml}
}
--
1.7.9.5