From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25554 invoked by alias); 13 Sep 2008 15:23:16 -0000 Received: (qmail 25544 invoked by uid 22791); 13 Sep 2008 15:23:16 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 13 Sep 2008 15:22:22 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id E2AE8104C0; Sat, 13 Sep 2008 15:22:20 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id B78FE104BF; Sat, 13 Sep 2008 15:22:20 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KeWx2-0001sg-87; Sat, 13 Sep 2008 11:22:20 -0400 Date: Sat, 13 Sep 2008 15:23:00 -0000 From: Daniel Jacobowitz To: Ulrich Weigand Cc: Joel Brobecker , gdb-patches@sourceware.org Subject: Re: [rfc][21/37] Eliminate builtin_type_ macros: Platform-neutral builtin_type_void Message-ID: <20080913152220.GB6583@caradoc.them.org> Mail-Followup-To: Ulrich Weigand , Joel Brobecker , gdb-patches@sourceware.org References: <20080906041154.GA10692@caradoc.them.org> <200809071558.m87FwKiG005931@d12av02.megacenter.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200809071558.m87FwKiG005931@d12av02.megacenter.de.ibm.com> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes 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: 2008-09/txt/msg00289.txt.bz2 On Sun, Sep 07, 2008 at 05:58:20PM +0200, Ulrich Weigand wrote: > 2.) lookup_pointer_type gets an gdbarch argument (or maybe just a > "size" argument, as that is what we really need) > > In this case, we'd probably have to extend the caching mechanims > to cache pointers of multiple different sizes (note that to some > extent that exists today via TYPE_CHAIN, see make_qualified_type). > > Then, there wouldn't really be any strict reason any more why > we couldn't allow making pointer types to platform-neutral types ... I like this idea; maybe pass the gdbarch to lookup_pointer_type, and let it encapsulate the knowledge that the size is all we need? There are architectures with differently sized pointers; this might make them easier to accomodate someday. -- Daniel Jacobowitz CodeSourcery