From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26607 invoked by alias); 22 Nov 2005 23:45:29 -0000 Received: (qmail 26597 invoked by uid 22791); 22 Nov 2005 23:45:27 -0000 X-Spam-Check-By: sourceware.org Received: from mxfep01.bredband.com (HELO mxfep01.bredband.com) (195.54.107.70) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 22 Nov 2005 23:45:26 +0000 Received: from ironport.bredband.com ([195.54.107.82] [195.54.107.82]) by mxfep01.bredband.com with ESMTP id <20051122234523.LYZY26888.mxfep01.bredband.com@ironport.bredband.com> for ; Wed, 23 Nov 2005 00:45:23 +0100 Received: from as18-4-6.ld.bonet.se (HELO efd.lth.se) ([217.215.11.93]) by ironport.bredband.com with SMTP; 23 Nov 2005 00:44:40 +0100 X-BrightmailFiltered: true X-IronPort-AV: i="3.97,363,1125871200"; d="scan'208"; a="12269602:sNHT75708747" From: Stefan =?ISO-8859-15?Q?Burstr=F6m?= To: gdb@sources.redhat.com Date: Tue, 22 Nov 2005 23:50:00 -0000 Message-ID: <347779088c4.4f532204@mail.m.bonet.se> In-Reply-To: <20051122232047.GA32223@nevyn.them.org> Subject: Re: info types question MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00506.txt.bz2 Hello Daniel On 2005-11-22, you wrote: >> The former I guess doesn't really matter, but the later really defines >> int to be an unsigned 64 bit type. Which cannot be what is desired? >> Of course I can ignore all types defined int libgcc2.c but I'd like to >> find out the 'logic' behind this. > > These probably indicate "typedefs" without a name, probably definitions > of base types. I see.I guess this is just the way things are then? Or is there a way for gdb to figure out if this is a basic type to make sure that it is indicated in the output? The reason for this is that I'd like to be able to resolve types into their basic types when I dump variables in my frontend. Eg, typedef char * STRPTR; STRPTR mystring; Would allow me to print the mystring variable as a real string since I can find out that the type of mystring really is char *. Btw, the mi output of info types is broken.Only the name is output, and not the type. Is this a known issue? regards, Stefan Burstrom