From patchwork Fri May 31 10:31:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 1108286 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-502059-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.cz 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 45Fgk622sVz9sDX for ; Fri, 31 May 2019 20:32:03 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :subject:to:message-id:date:mime-version:content-type; q=dns; s= default; b=oQZ5PkhZK2OYAApcZrf4XkyWKrA8MHmxXkJZkVIRxfUap3Uta6e+C nk6sgTMIb2QmP36tW0sb8P9SwgVhYjPTPQEBnDtqpUoxuSMal8OpK4xB4FxzRVtt GxenjZ7dbSx8xGDmUxIzzka50DFvWLYptKQrhBANJwuI1R9AAn1fTQ= 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:from :subject:to:message-id:date:mime-version:content-type; s= default; bh=60y4M8ziYDLSTpgqoyKsxJrcKa0=; b=NroZEg9LheTBN/xxXgKx xl4V6p+HFJz5N8DShFQu58p9ZDcZW1tzbcm1HnkoKYXARpn8R3iPuq6XSpJ11Pwn tLQkA9EItGAcLDJYeAmOCYi4UqjU8BqE3NO+Tz4qMK7DPGvy+FHoJrJY/sgi/AHC QMHmfhcAgF2IxEXNsE4az3k= 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-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 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 12:31:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 X-IsSubscribed: yes 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(-) 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)