From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4706 invoked by alias); 6 Dec 2006 19:52:37 -0000 Received: (qmail 4697 invoked by uid 22791); 6 Dec 2006 19:52:37 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 06 Dec 2006 19:52:30 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1Gs2od-0002Px-4U; Wed, 06 Dec 2006 14:52:27 -0500 Date: Wed, 06 Dec 2006 19:52:00 -0000 From: Daniel Jacobowitz To: Jim Blandy , gdb-patches@sourceware.org Subject: Now I know why we used to swap builtin_type_void. Message-ID: <20061206195227.GA9228@nevyn.them.org> Mail-Followup-To: Jim Blandy , gdb-patches@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-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: 2006-12/txt/msg00072.txt.bz2 (top-gdb) p *builtin_type_void_data_ptr $24 = {pointer_type = 0x0, reference_type = 0x0, chain = 0x7b50d0, instance_flags = 0, length = 8, main_type = 0x7b5100} (top-gdb) p current_gdbarch.ptr_bit $25 = 32 Because we didn't swap out "void", we followed the cached pointer link in builtin_type_void when we tried to create a pointer to void. My initial default gdbarch was 64-bit, because I built a 64-bit GDB binary. So the cached pointer type is 64-bit. This is a mess. I think we may need to revert the builtin_type_void patch unless you have a better idea. -- Daniel Jacobowitz CodeSourcery