From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103589 invoked by alias); 31 May 2019 10:31:56 -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 103580 invoked by uid 89); 31 May 2019 10:31:56 -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; Fri, 31 May 2019 10:31:55 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 0D1F1AF1C for ; Fri, 31 May 2019 10:31:53 +0000 (UTC) From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Subject: [PATCH][OBVIOUS] Add pretty print for const_tree. To: gcc-patches@gcc.gnu.org Message-ID: <4926f5c8-52d5-3dbc-1888-ba12fb1e01e4@suse.cz> Date: Fri, 31 May 2019 10:36: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="------------65BDD6096D3D10B65E9DDF1D" X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg02112.txt.bz2 This is a multi-part message in MIME format. --------------65BDD6096D3D10B65E9DDF1D Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-length: 233 Hi. One obvious pretty printer change. Martin gcc/ChangeLog: 2019-05-31 Martin Liska * gdbhooks.py: Add const_tree to TreePrinter. --- gcc/gdbhooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --------------65BDD6096D3D10B65E9DDF1D Content-Type: text/x-patch; name="0001-Add-pretty-print-for-const_tree.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Add-pretty-print-for-const_tree.patch" Content-length: 562 diff --git a/gcc/gdbhooks.py b/gcc/gdbhooks.py index 7b1a7be0002..39f5c4772f9 100644 --- a/gcc/gdbhooks.py +++ b/gcc/gdbhooks.py @@ -540,7 +540,7 @@ class GdbPrettyPrinters(gdb.printing.PrettyPrinter): def build_pretty_printer(): pp = GdbPrettyPrinters('gcc') - pp.add_printer_for_types(['tree'], + pp.add_printer_for_types(['tree', 'const_tree'], 'tree', TreePrinter) pp.add_printer_for_types(['cgraph_node *', 'varpool_node *', 'symtab_node *'], 'symtab_node', SymtabNodePrinter) --------------65BDD6096D3D10B65E9DDF1D--