From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32451 invoked by alias); 14 Jan 2014 17:44:28 -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 32440 invoked by uid 89); 14 Jan 2014 17:44:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e06smtp12.uk.ibm.com Received: from e06smtp12.uk.ibm.com (HELO e06smtp12.uk.ibm.com) (195.75.94.108) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 14 Jan 2014 17:44:26 +0000 Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 14 Jan 2014 17:44:23 -0000 Received: from d06dlp03.portsmouth.uk.ibm.com (9.149.20.15) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 14 Jan 2014 17:44:20 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 5FFF41B0805F for ; Tue, 14 Jan 2014 17:43:41 +0000 (GMT) Received: from d06av06.portsmouth.uk.ibm.com (d06av06.portsmouth.uk.ibm.com [9.149.37.217]) by b06cxnps4076.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s0EHi7WG66519274 for ; Tue, 14 Jan 2014 17:44:07 GMT Received: from d06av06.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s0EHiJ7P019456 for ; Tue, 14 Jan 2014 10:44:19 -0700 Received: from br87z6lw.de.ibm.com (dyn-9-152-212-219.boeblingen.de.ibm.com [9.152.212.219]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s0EHiIXw019445 for ; Tue, 14 Jan 2014 10:44:19 -0700 From: Andreas Arnez To: gdb-patches@sourceware.org Subject: [PATCH] Prevent appending "-g" after "-g3" to compile options in info-macros.exp. Date: Tue, 14 Jan 2014 17:44:00 -0000 Message-ID: <87k3e231cc.fsf@br87z6lw.de.ibm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14011417-8372-0000-0000-0000085428D0 X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00452.txt.bz2 When upstream gcc is given a command line with "-g3" followed by "-g", it doesn't generate a ".debug_macro" section. This is because the last option wins, thus downgrading the debug level again. Without any macro debug information in the executable, info-macros.exp obviously yields many failures. Since "-g" is appended by DejaGnu's target_compile whenever the "debug" option is set, the fix just removes that option. testsuite/ 2014-01-14 Andreas Arnez * gdb.base/info-macros.exp: Remove "debug" from the compile options. --- gdb/testsuite/gdb.base/info-macros.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.base/info-macros.exp b/gdb/testsuite/gdb.base/info-macros.exp index ff889f4..121e00b 100644 --- a/gdb/testsuite/gdb.base/info-macros.exp +++ b/gdb/testsuite/gdb.base/info-macros.exp @@ -27,7 +27,7 @@ if ![test_compiler_info gcc*] { return -1 } -set options "debug additional_flags=-g3" +set options "additional_flags=-g3" if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} $options] } { untested ${testfile}.exp -- 1.8.3.1