From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15924 invoked by alias); 17 Oct 2013 12:59:03 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 15910 invoked by uid 89); 17 Oct 2013 12:59:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: kiruna.synopsys.com Received: from kiruna.synopsys.com (HELO kiruna.synopsys.com) (198.182.44.80) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 17 Oct 2013 12:59:00 +0000 Received: from WBSNus02mta1 (us02secmta1.synopsys.com [10.12.235.96]) by kiruna.synopsys.com (Postfix) with ESMTP id 03685F293; Thu, 17 Oct 2013 05:58:58 -0700 (PDT) Received: from us02secmta1.internal.synopsys.com (us02secmta1.internal.synopsys.com [127.0.0.1]) by us02secmta1.internal.synopsys.com (Service) with ESMTP id E3E114E213; Thu, 17 Oct 2013 05:58:58 -0700 (PDT) Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.9.202.240]) by us02secmta1.internal.synopsys.com (Service) with ESMTP id C68124E202; Thu, 17 Oct 2013 05:58:58 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id BAA0AFBD; Thu, 17 Oct 2013 05:58:58 -0700 (PDT) Received: from ru20-arctools.internal.synopsys.com (ru20-arctools.internal.synopsys.com [10.121.9.107]) by mailhost.synopsys.com (Postfix) with ESMTP id A5FEEFBC; Thu, 17 Oct 2013 05:58:57 -0700 (PDT) From: Anton Kolesov To: gdb-patches@sourceware.org Cc: Anton Kolesov , Jeremy.bennett@embecosm.com Subject: [PATCH] testsuite: Treat empty string in needs_status_wrapper as a false value Date: Thu, 17 Oct 2013 12:59:00 -0000 Message-Id: <1382014717-15710-1-git-send-email-Anton.Kolesov@synopsys.com> X-SW-Source: 2013-10/txt/msg00514.txt.bz2 GCC testsuite treats empty string in [target_info needs_status_wrapper] the same way as "0" - as a false value. GDB testsuite on the other hand recognizes only zero as false. This patch changes this to improve compatibilty of board files. gdb/testsuite/ChangeLog: 2013-10-17 Anton Kolesov * lib/gdb.exp (gdb_compile, gdb_wrapper_init): Treat empty string in target_info needs_status_wrapper the same way as zero - as a false value. --- gdb/testsuite/lib/gdb.exp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 3efd539..f5f1555 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -2511,6 +2511,7 @@ proc gdb_wrapper_init { args } { if { $gdb_wrapper_initialized == 1 } { return; } if {[target_info exists needs_status_wrapper] && \ + [target_info needs_status_wrapper] != "" && \ [target_info needs_status_wrapper] != "0"} { set result [build_wrapper "testglue.o"] if { $result != "" } { @@ -2610,6 +2611,7 @@ proc gdb_compile {source dest type options} { if { $gdb_wrapper_initialized == 0 } { gdb_wrapper_init } if {[target_info exists needs_status_wrapper] && \ + [target_info needs_status_wrapper] != "" && \ [target_info needs_status_wrapper] != "0" && \ [info exists gdb_wrapper_file]} { lappend options "libs=${gdb_wrapper_file}" -- 1.8.4.1