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

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

index 9e4a15d455c1e185bd65b58bf88f0d9d4659d9b6..e5799432c3b7ef6cd4e98fd40688aa5e26aa7248 100644 (file)
@@ -1,3 +1,8 @@
+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
index 87bc62d2ce749b8ee7878c1b78596cffdbe91f1a..ca7051d56d0e0d9275767fcdf07155399fc5967c 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
 }