+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
# 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
}