From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 34908 invoked by alias); 29 May 2019 09:46:20 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 34900 invoked by uid 89); 29 May 2019 09:46:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 29 May 2019 09:46:19 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 425ABAD39 for ; Wed, 29 May 2019 09:46:17 +0000 (UTC) From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Subject: [PATCH] gdbinit: add a new command and fix one To: gcc-patches@gcc.gnu.org Message-ID: Date: Wed, 29 May 2019 09:54:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------A5C13A982A4B29CC004C459A" X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg01877.txt.bz2 This is a multi-part message in MIME format. --------------A5C13A982A4B29CC004C459A Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-length: 298 Hi. The patch is about a small change in .gdbinit file. Ready for trunk? Martin gcc/ChangeLog: 2019-05-29 Martin Liska * gdbinit.in: Fix 'ptc' command. Add tt that prints TREE_TYPE($). --- gcc/gdbinit.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) --------------A5C13A982A4B29CC004C459A Content-Type: text/x-patch; name="0001-gdbinit-add-a-new-command-and-fix-one.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-gdbinit-add-a-new-command-and-fix-one.patch" Content-length: 533 diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in index e16c3c8ef87..81c65d2e7b4 100644 --- a/gcc/gdbinit.in +++ b/gcc/gdbinit.in @@ -113,7 +113,7 @@ Works only when an inferior is executing. end define ptc -output (enum tree_code) $.common.code +output (enum tree_code) $.base.code echo \n end @@ -201,6 +201,14 @@ document pcfun Print current function. end +define tt +print ($.typed.type) +end + +document tt +Print TREE_TYPE of the tree node that is $ +end + define break-on-diagnostic break diagnostic_show_locus end --------------A5C13A982A4B29CC004C459A--