aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorYan-Ting Lin <currygt52@gmail.com>2016-06-17 15:25:08 +0800
committerpatrick <patrick@andestech.com>2016-06-17 16:58:05 +0800
commita28d8e5037333291991f7b0036b273e8ca1ffc34 (patch)
tree73724d3d633b6b0bfb733ebb1aa5bee0f35231eb /gdb/testsuite
parent96074adc6a780c7984645e3e42434be368974737 (diff)
downloadgdb-a28d8e5037333291991f7b0036b273e8ca1ffc34.zip
gdb-a28d8e5037333291991f7b0036b273e8ca1ffc34.tar.gz
gdb-a28d8e5037333291991f7b0036b273e8ca1ffc34.tar.bz2
gdb: new AndesTech NDS32 port
gdb/ChangeLog: * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o. (HFILES_NO_SRCDIR): Add nds32-tdep.h. (ALLDEPFILES): Add nds32-tdep.c. * NEWS: Mention new NDS32 port. * configure.tgt: Add NDS32. * nds32-tdep.c: New file. * nds32-tdep.h: New file. * features/Makefile (XMLTOC): Add nds32.xml. * features/nds32-core.xml: New file. * features/nds32-fpu.xml: New file. * features/nds32-system.xml: New file. * features/nds32.c: New file (generated). * features/nds32.xml: New file. gdb/doc/ChangeLog: * gdb.texinfo (Standard Target Features): Document NDS32 features. (NDS32 Features): New Section. gdb/testsuite/ChangeLog: * gdb.base/float.exp: Add target check for nds32*-*-*. * gdb.xml/tdesc-regs.exp: Set core-regs for nds32*-*-*.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/float.exp9
-rw-r--r--gdb/testsuite/gdb.xml/tdesc-regs.exp3
3 files changed, 17 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index ba7dd39..3dad273 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2016-06-17 Yan-Ting Lin <currygt52@gmail.com>
+
+ * gdb.base/float.exp: Add target check for nds32*-*-*.
+ * gdb.xml/tdesc-regs.exp: Set core-regs for nds32*-*-*.
+
2016-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
* gdb.base/call-ar-st.exp: Report unsupported rather than xfail
diff --git a/gdb/testsuite/gdb.base/float.exp b/gdb/testsuite/gdb.base/float.exp
index 939f07f..bc3e230 100644
--- a/gdb/testsuite/gdb.base/float.exp
+++ b/gdb/testsuite/gdb.base/float.exp
@@ -76,6 +76,15 @@ if { [is_aarch64_target] } then {
pass "info float (with 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 "powerpc*-*-*"] then {
gdb_test_multiple "info float" "info_float" {
-re "f0.*f1.*f31.*fpscr.*$gdb_prompt $" {
diff --git a/gdb/testsuite/gdb.xml/tdesc-regs.exp b/gdb/testsuite/gdb.xml/tdesc-regs.exp
index 48204cd..c197e28 100644
--- a/gdb/testsuite/gdb.xml/tdesc-regs.exp
+++ b/gdb/testsuite/gdb.xml/tdesc-regs.exp
@@ -39,6 +39,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}
}