OSDN Git Service

2011-01-19 Yao Qi <yao@codesourcery.com>
authorqiyao <qiyao>
Thu, 20 Jan 2011 05:38:41 +0000 (05:38 +0000)
committerqiyao <qiyao>
Thu, 20 Jan 2011 05:38:41 +0000 (05:38 +0000)
* lib/dwarf.exp (dwarf2_support): Change supported targets to a
positve list.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/dwarf.exp

index 9e4a15d..e579943 100644 (file)
@@ -1,5 +1,10 @@
 2011-01-19  Yao Qi  <yao@codesourcery.com>
 
+       * lib/dwarf.exp (dwarf2_support): Change supported targets to a
+       positve list.
+
+2011-01-19  Yao Qi  <yao@codesourcery.com>
+
        * gdb.asm/asm-source.exp: Replace ARM target triplet with a
        canonical form.
        Remove "xscale-*-*"
index 87bc62d..ca7051d 100644 (file)
 # Return true if the target supports DWARF-2 and uses gas.
 # For now pick a sampling of likely targets.
 proc dwarf2_support {} {
-    if {![istarget *-*-linux*]
-       && ![istarget *-*-gnu*]
-       && ![istarget *-*-elf*]
-       && ![istarget *-*-openbsd*]
-       && ![istarget arm*-*-eabi*]
-       && ![istarget arm*-*-symbianelf*]
-       && ![istarget powerpc-*-eabi*]} {
-       return 0
+    if {[istarget *-*-linux*]
+       || [istarget *-*-gnu*]
+       || [istarget *-*-elf*]
+       || [istarget *-*-openbsd*]
+       || [istarget arm*-*-eabi*]
+       || [istarget arm*-*-symbianelf*]
+       || [istarget powerpc-*-eabi*]} {
+       return 1
     }
 
-    return 1
+    return 0
 }