From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21599 invoked by alias); 8 May 2012 10:52:15 -0000 Received: (qmail 21585 invoked by uid 22791); 8 May 2012 10:52:13 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_GD,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 May 2012 10:51:57 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q48Apush012767 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 8 May 2012 06:51:56 -0400 Received: from host2.jankratochvil.net (ovpn-116-17.ams2.redhat.com [10.36.116.17]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q48Apoqq025224 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 8 May 2012 06:51:55 -0400 Date: Tue, 08 May 2012 10:52:00 -0000 From: Jan Kratochvil To: Luke Cc: gdb@sourceware.org Subject: Re: -ggdb3 -gdwarf-4 but "info macro BLAH" still doesn't work? Message-ID: <20120508105150.GA14311@host2.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00029.txt.bz2 On Tue, 08 May 2012 12:03:50 +0200, Luke wrote: > $ gcc -gdwarf-4 -gdb3 -Wall -O0 sample.c -o sample -ggdb3, otherwise: cc1: error: unrecognised debug output level "db3" > This happens with Linaro gcc 4.7-2012.04, as well as a very recent > pull from gcc master (4.8.0 20120502). > > It doesn't happen with gcc 4.6.2. It is probably due to the smaller .debug_macro section by Jakub Jelinek. See 'readelf -WS sample', .debug_macinfo is the gdb-7.4.x compatible format, .debug_macro is the new format available only in post-7.4 GDB snapshots since: commit 101e95e8a31879712dff26d233cdb266c1aba673 Author: Tom Tromey Date: Tue Jul 26 17:04:21 2011 +0000 You can request with new GCC the old .debug_macinfo format by -gstrict-dwarf but it also generates more poor debug info in other regards. > Any suggestions? I'm guessing this is a gcc bug. Use GDB snapshot: http://sources.redhat.com/gdb/current/ Regards, Jan