From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9341 invoked by alias); 15 Aug 2012 18:21:59 -0000 Received: (qmail 9275 invoked by uid 22791); 15 Aug 2012 18:21:56 -0000 X-SWARE-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,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; Wed, 15 Aug 2012 18:21:43 +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 q7FILNdL022490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 15 Aug 2012 14:21:23 -0400 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q7FILK3x025323 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 15 Aug 2012 14:21:21 -0400 From: Tom Tromey To: Gabriel Dos Reis Cc: Diego Novillo , Richard Guenther , gcc-patches@gcc.gnu.org, Lawrence Crowl , bonzini@gnu.org, dj@redhat.com, laurynas.biveinis@gmail.com, gdb@sourceware.org, Keith Seitz Subject: Re: Merge C++ conversion into trunk (0/6 - Overview) References: <20120812200427.GA12561@google.com> <502B93BF.6020802@google.com> <502B94C9.4020607@google.com> <877gt0ujmn.fsf@fleche.redhat.com> Date: Wed, 15 Aug 2012 18:21:00 -0000 In-Reply-To: (Gabriel Dos Reis's message of "Wed, 15 Aug 2012 13:02:11 -0500") Message-ID: <87zk5wt3rz.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-08/txt/msg00058.txt.bz2 >>>>> "Gaby" == Gabriel Dos Reis writes: Tom> I asked Keith to resurrect his patch for this. Gaby> Since people are concerned about typing rules, would it Gaby> be an option for GDB to allow people to input pointer Gaby> literals with the "p" suffix (or "0p" prefix instead of "0x")? I think on the whole I'd rather have one extension instead of two. It seems to me that the above would still require extensions in the overloading code, to deal with conversions from void*; or perhaps some magic pointer type. What I think Keith is going to do is take his patch, change it so that int->pointer conversions (if the int != 0) are given a different badness from other conversions (meaning that, in theory, this should only be chosen as a last resort, and shouldn't interfere with ordinary uses), and finally add a parameter so that the feature can be disabled. I hope this will be acceptable all around. Tom