From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14758 invoked by alias); 13 Sep 2008 17:23:01 -0000 Received: (qmail 14748 invoked by uid 22791); 13 Sep 2008 17:23:01 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 13 Sep 2008 17:22:25 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 1635C2A966A; Sat, 13 Sep 2008 13:22:23 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06w8K38tDi7p; Sat, 13 Sep 2008 13:22:23 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id C99CC2A9650; Sat, 13 Sep 2008 13:22:22 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 72CDBE7ACD; Sat, 13 Sep 2008 10:22:20 -0700 (PDT) Date: Sat, 13 Sep 2008 17:23:00 -0000 From: Joel Brobecker To: Ulrich Weigand Cc: Daniel Jacobowitz , gdb-patches@sourceware.org Subject: Re: [rfc][21/37] Eliminate builtin_type_ macros: Platform-neutral builtin_type_void Message-ID: <20080913172220.GI3714@adacore.com> 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.4.2.2i 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/msg00295.txt.bz2 > 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 approach as well - I think that passing the gdbarch is fine. The lookup_pointer_type could iterate over the TYPE_CHAIN list until it finds a pointer of the right size (or create a new one if not). -- Joel