From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13404 invoked by alias); 2 Jan 2008 03:18:23 -0000 Received: (qmail 13396 invoked by uid 22791); 2 Jan 2008 03:18:23 -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 03:17:53 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id DEA2E9811B; Wed, 2 Jan 2008 03:17:51 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id A4A3698118; Wed, 2 Jan 2008 03:17:51 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1J9u74-0007GA-CG; Tue, 01 Jan 2008 22:17:50 -0500 Date: Wed, 02 Jan 2008 03:18:00 -0000 From: Daniel Jacobowitz To: Gary Funck Cc: GDB List Subject: Re: how to search for a global type? Message-ID: <20080102031750.GA27872@caradoc.them.org> Mail-Followup-To: Gary Funck , GDB List References: <20071231042844.GA18814@intrepid.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071231042844.GA18814@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/msg00000.txt.bz2 On Sun, Dec 30, 2007 at 08:28:44PM -0800, Gary Funck wrote: > static > int > lookup_type_by_name (const char *type_name) > { > const struct symbol *sym; > const struct type *type; > int type_id; > sym = lookup_symbol_global (type_name, NULL, TYPES_DOMAIN, NULL); Are types global, or do they usually end up in the file's static block? I'd guess the latter. Check maint print symbols. -- Daniel Jacobowitz CodeSourcery