This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, testsuite] General ARM target triplet


On Sat, 2010-12-04 at 00:33 +0800, Yao Qi wrote:
> diff --git a/gdb/testsuite/gdb.xml/tdesc-regs.exp
> b/gdb/testsuite/gdb.xml/tdesc-regs.exp
> index f37b2f3..64e56ea 100644
> --- a/gdb/testsuite/gdb.xml/tdesc-regs.exp
> +++ b/gdb/testsuite/gdb.xml/tdesc-regs.exp
> @@ -27,7 +27,7 @@ set core-regs ""
>  set regdir ""
>  set architecture ""
>  switch -glob -- [istarget] {
> -    "*arm-*-*" {
> +    "*arm*-*-*" {
>          set core-regs {arm-core.xml}
>      }
>      "xscale-*-*" {

So I think this is too broad.  arm in the middle of a string could match
many things that are not ARM cores at all.  I think the original code
dates back to support for StrongARM and someone was being lazy.

It's probably better to make this a specific test for strongarm* and
arm* rather than a very wide-ranging glob.

R.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]