From ec64c9aa23eb456215787480e11497c0711c13ac Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Wed, 19 Jan 2011 20:38:41 +0000 Subject: [PATCH] 2011-01-19 Yao Qi * lib/dwarf.exp (dwarf2_support): Change supported targets to a positve list. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/lib/dwarf.exp | 18 +++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 9e4a15d455c..e5799432c3b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-01-19 Yao Qi + + * lib/dwarf.exp (dwarf2_support): Change supported targets to a + positve list. + 2011-01-19 Yao Qi * gdb.asm/asm-source.exp: Replace ARM target triplet with a diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp index 87bc62d2ce7..ca7051d56d0 100644 --- a/gdb/testsuite/lib/dwarf.exp +++ b/gdb/testsuite/lib/dwarf.exp @@ -16,15 +16,15 @@ # 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 } -- 2.30.2