From patchwork Tue Mar 10 10:38:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 448467 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 5BB92140172 for ; Tue, 10 Mar 2015 21:38:51 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=n8VKd8F7; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; q=dns; s=default; b=ZNOO1V4m0evchXAy/ 8QtHAn0oAK278S7SrPPA+iH7lkhbzp9gL+BpEUb9tm06h4hF9EXxen8wdno5HTHm f7IsYbr1byJ0oM4qOee0q4PlNm635gWG4tl8+H35CDmo/WqFKgXimXYgOv7OMTH/ xMcCt7Nvnn53QP90VN9sIkc/sw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=default; bh=KapTa/VmP3cePu8mgUEAt7l SayI=; b=n8VKd8F7pw/JSTzbTlljfu0K7yqD3GEuKNRer9ab35M121BH81D5BJZ +Rtv6sXBpF4Qqzph+Oe88iWVnBH5EjQv5NoKOzKy1FVYaUzJ5ldMtRk2DMInAPU+ eXJ4+6JdyVN6JF5FKVrghCYE73X2IZCUtL/mV33Ada4JvSCkO2bg= Received: (qmail 58867 invoked by alias); 10 Mar 2015 10:38:43 -0000 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 Received: (qmail 58853 invoked by uid 89); 10 Mar 2015 10:38:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 10 Mar 2015 10:38:42 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t2AAcdmH011785 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 10 Mar 2015 06:38:41 -0400 Received: from redhat.com ([10.40.204.16]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t2AAcZc4011466 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Tue, 10 Mar 2015 06:38:38 -0400 Date: Tue, 10 Mar 2015 11:38:35 +0100 From: Marek Polacek To: Richard Biener Cc: GCC Patches , David Malcolm Subject: Re: [PATCH] Add cfun printing to gdbinit.in Message-ID: <20150310103834.GK26802@redhat.com> References: <20150310103146.GJ26802@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) On Tue, Mar 10, 2015 at 11:33:13AM +0100, Richard Biener wrote: > Isn't cfun->decl much more likely to work? Dunno, if that's the case, then: 2015-03-10 Marek Polacek * gdbinit.in (pcfun): Define and document. Marek diff --git gcc/gdbinit.in gcc/gdbinit.in index 10fe5ad..436de06 100644 --- gcc/gdbinit.in +++ gcc/gdbinit.in @@ -199,6 +199,15 @@ document pel Print expanded location of $. end +define pcfun +output debug_function (cfun->decl, 0) +echo \n +end + +document pcfun +Print current function. +end + # Define some macros helpful to gdb when it is expanding macros. macro define __FILE__ "gdb" macro define __LINE__ 1