[aarch64] Fix one fail in gdb.xml/tdesc-regs.exp
authorYao Qi <yao.qi@linaro.org>
Wed, 25 Feb 2015 10:39:59 +0000 (10:39 +0000)
committerYao Qi <yao.qi@linaro.org>
Wed, 25 Feb 2015 10:39:59 +0000 (10:39 +0000)
Hi,
I see the following fail in aarch64-linux-gnu testing...

(gdb) set tdesc file /XXX/gdb/testsuite/gdb.xml/single-reg.xml^M
warning: Architecture rejected target-supplied description^M
(gdb) FAIL: gdb.xml/tdesc-regs.exp: set tdesc file single-reg.xml

core-regs isn't set for aarch64 target, and looks it is an oversight
when aarch64 port was added.

gdb/testsuite:

2015-02-25  Yao Qi  <yao.qi@linaro.org>

* gdb.xml/tdesc-regs.exp: Set core-regs to aarch64-core.xml for
aarch64*-*-* target.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.xml/tdesc-regs.exp

index 87f6c981253eeef92fe6fd540d25879c65161547..c7b1c15115168a7bec7fd6885c64a0ddb7960002 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-25  Yao Qi  <yao.qi@linaro.org>
+
+       * gdb.xml/tdesc-regs.exp: Set core-regs to aarch64-core.xml for
+       aarch64*-*-* target.
+
 2015-02-23  Pedro Alves  <palves@redhat.com>
 
        * lib/gdb.exp (delete_breakpoints): Rewrite using
index 8f0eb4192a3d8fd063014443eba3a527a84954e8..8f7f38814e548bbbba654fd72113f274cf20d65f 100644 (file)
@@ -27,6 +27,9 @@ set core-regs ""
 set regdir ""
 set architecture ""
 switch -glob -- [istarget] {
+    "aarch64*-*-*" {
+       set core-regs {aarch64-core.xml}
+    }
     "arm*-*-*" {
         set core-regs {arm-core.xml}
     }