From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18077 invoked by alias); 2 Jan 2008 13:12:43 -0000 Received: (qmail 18053 invoked by uid 22791); 2 Jan 2008 13:12:42 -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; Wed, 02 Jan 2008 13:06:42 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 11E419811F; Wed, 2 Jan 2008 13:06:32 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id B039598118; Wed, 2 Jan 2008 13:06:31 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1JA3Ik-0008Mp-Ul; Wed, 02 Jan 2008 08:06:30 -0500 Date: Wed, 02 Jan 2008 13:12:00 -0000 From: Daniel Jacobowitz To: Gary Funck Cc: GDB List Subject: Re: how to search for a global type? Message-ID: <20080102130630.GA31874@caradoc.them.org> Mail-Followup-To: Gary Funck , GDB List References: <20071231042844.GA18814@intrepid.com> <20080102031750.GA27872@caradoc.them.org> <20080102051626.GB1259@intrepid.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080102051626.GB1259@intrepid.com> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes 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: 2008-01/txt/msg00002.txt.bz2 On Tue, Jan 01, 2008 at 09:16:26PM -0800, Gary Funck wrote: > The typedef appears to be in inner block. Does that make it static? Block 0 is the global symbols; block 1 is the file static symbols. Later blocks are the bodies of functions, et cetera. It makes sense for types to be static if you think about it from the right perspective, since types do not (generally) have linker visibility; the linker can't patch up your code to reference a type declared in another file. In short, try just lookup_symbol? -- Daniel Jacobowitz CodeSourcery