From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32049 invoked by alias); 10 Jan 2012 21:49:43 -0000 Received: (qmail 32041 invoked by uid 22791); 10 Jan 2012 21:49:42 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Jan 2012 21:49:30 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q0ALnTUT004269 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 10 Jan 2012 16:49:29 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q0ALnTow029236; Tue, 10 Jan 2012 16:49:29 -0500 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id q0ALnS9T014121; Tue, 10 Jan 2012 16:49:28 -0500 From: Tom Tromey To: Jan Kratochvil Cc: gdb-patches@sourceware.org Subject: Re: RFC: enum pretty-printing support References: <20120110211713.GA1550@host2.jankratochvil.net> Date: Tue, 10 Jan 2012 22:00:00 -0000 In-Reply-To: <20120110211713.GA1550@host2.jankratochvil.net> (Jan Kratochvil's message of "Tue, 10 Jan 2012 22:18:36 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-01/txt/msg00325.txt.bz2 >>>>> "Jan" == Jan Kratochvil writes: Jan> On Tue, 10 Jan 2012 20:54:39 +0100, Tom Tromey wrote: >> I'd appreciate comments on this patch. Jan> There is the obvious question this may work automatically if all Jan> the values of enum type are in the form 2^n and fall back to the Jan> GDB default way otherwise. Yeah, that might be nicer. I will look into it. Jan> GDB could pass the type as `enum NAME' instead of just `NAME' to Jan> the pretty printer regex. I thought perhaps the user would want to register it against a typedef as well. Tom