From patchwork Mon Aug 13 00:38:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diego Novillo X-Patchwork-Id: 176844 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id EDE7A2C0091 for ; Mon, 13 Aug 2012 10:38:31 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1345423112; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Message-ID:Date:From:User-Agent:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type: Content-Transfer-Encoding:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=qaex3uMNB89O4lagwLJZVItippM=; b=WykETXqeP3FFYJT fu/XLcLhQ0Qw+iNKD0eYHUOLO2TJjRyjk7/SwEBN5Q6RoSF5LNdATo9gfSEkzSvO g2caJVQ7Ni0SmV35o+arrfWOfeB+YaGiaG9mMTaIKFDYDcvcKNFEb8CUMqjo1K7Z pKUNhmFDLBiBR3pRc0K19j4gT7Cg= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-Google-DKIM-Signature:Received:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=nkvL8IZPRvielK/R1k7Nd0j/WkkEC29nWsTz2Yd2aj75IcYuKyGGGYPNs0q1Jz nv7URZdKxYVnj1gwAKLCnXxXp8xa9sYHtDnTznTPoptQ3my6F1sNwiA9IRE3xXfJ PnjMTB/ei3eZsUReHmawxC7t/UxB71Y+i2QXPI/Ls11GY=; Received: (qmail 19914 invoked by alias); 13 Aug 2012 00:38:29 -0000 Received: (qmail 19903 invoked by uid 22791); 13 Aug 2012 00:38:28 -0000 X-SWARE-Spam-Status: No, hits=-5.7 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, KHOP_RCVD_TRUST, KHOP_THREADED, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-qa0-f47.google.com (HELO mail-qa0-f47.google.com) (209.85.216.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 13 Aug 2012 00:38:08 +0000 Received: by qadc11 with SMTP id c11so562505qad.20 for ; Sun, 12 Aug 2012 17:38:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:organization:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding:x-gm-message-state; bh=6BtnPijskLCtsKejaCVTpSk1Rf0MWVWRs7kbYXtA16I=; b=n9SVUjcJXGVUQoErQ3zoaoFdzjWyxcIYikEg/54eA5eG5OuzyPH1XjFyTqZ0LBbzOz 2eAOwSlUD53j5XwyC4gLo+J7wpqgWj+HdoHbz3PeVyL2OMU9DMgzkkDid+RZ9Hipw4yb Z4kqcZl5/EXU8kOQHdEKDtMa6SXIZ7sZ09LgVNAHrjju5acRWTjtKBjeAXDcytRQtdVL PXentALHvocvWTw2bGv4It5rOiCPVM0qzOeAocXkZlivQVp6kZW50AGjd2LcPapggrKv s+WvjnIjBbxSLcN/Fp7dXQGNRJqdt9B6b4d0N8HJM1pP6zUbEm0V6swYZLHKD09gnO5N WBeg== Received: by 10.224.0.202 with SMTP id 10mr21808014qac.5.1344818287569; Sun, 12 Aug 2012 17:38:07 -0700 (PDT) Received: by 10.224.0.202 with SMTP id 10mr21808004qac.5.1344818287474; Sun, 12 Aug 2012 17:38:07 -0700 (PDT) Received: from dnovillo-macbookpro.local ([172.26.38.67]) by mx.google.com with ESMTPS id gp4sm7543785qab.3.2012.08.12.17.38.05 (version=SSLv3 cipher=OTHER); Sun, 12 Aug 2012 17:38:06 -0700 (PDT) Message-ID: <50284C6C.4080101@google.com> Date: Sun, 12 Aug 2012 20:38:04 -0400 From: Diego Novillo User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: Andreas Schwab CC: gcc-patches@gcc.gnu.org, Lawrence Crowl , Richard Guenther , Richard Henderson Subject: Re: Merge C++ conversion into trunk (6/6 - gdb tree macro support) References: <20120812201732.GA15153@google.com> In-Reply-To: X-Gm-Message-State: ALoCoQkq3qK55RG89RACjLTvdUC4H308SW0G4MgXof+qkkHOVD0AxoEgb1Y5zYuhy2+7PcgNtrdSIGgeExEfq8ttwrajj7jIyQun59+KoEmtd2CN3lGV5FhxwEYGfBv0p1aYlJvdGbhBg6cJZXL3zaz8MQUrLzu2gnQdnn53hntRinNSsMAyEMcutb8rnb3x/SEZ0U62k9xC X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org On 12-08-12 16:40 , Andreas Schwab wrote: > Diego Novillo writes: > >> diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in >> index d1ae46d..858e490 100644 >> --- a/gcc/gdbinit.in >> +++ b/gcc/gdbinit.in >> @@ -182,6 +182,17 @@ document pbm >> Dump the bitmap that is in $ as a comma-separated list of numbers. >> end >> >> +# Define some macros helpful to gdb when it is expanding macros. >> +macro define __FILE__ "gdb" >> +macro define __LINE__ 1 >> + >> +# Skip all inline functions in tree.h. >> +# These are used in accessor macros. >> +skip "tree.h" > > This command has only been added to the current gdb release. Older > versions will bail out at this point, so it should be moved down to the > end of the file. Fixed. Thanks. Diego. diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in index 858e490..6432113 100644 --- a/gcc/gdbinit.in +++ b/gcc/gdbinit.in @@ -186,10 +186,6 @@ end macro define __FILE__ "gdb" macro define __LINE__ 1 -# Skip all inline functions in tree.h. -# These are used in accessor macros. -skip "tree.h" - # Gracefully handle aborts in functions used from gdb. set unwindonsignal on @@ -207,3 +203,9 @@ set complaints 0 # USE_SYSTEM_ABORT is defined, so gdb may complain and bail out. b exit b abort + +# Skip all inline functions in tree.h. +# These are used in accessor macros. +# Note that this is added at the end because older gdb versions +# do not understand the 'skip' command. +skip "tree.h"