From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4050 invoked by alias); 24 May 2003 14:36:09 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 4005 invoked from network); 24 May 2003 14:36:09 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 24 May 2003 14:36:09 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19Ja8O-0006Nw-00; Sat, 24 May 2003 09:36:33 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19Ja7n-0003sk-00; Sat, 24 May 2003 10:35:55 -0400 Date: Sat, 24 May 2003 14:36:00 -0000 From: Daniel Jacobowitz To: Hilfinger@otisco.mckusick.com Cc: carlton@bactrian.org, gdb@sources.redhat.com, ezannoni@redhat.com, jimb@redhat.com Subject: Re: [rfc] lookups with natural/linkage names Message-ID: <20030524143554.GA14905@nevyn.them.org> Mail-Followup-To: Hilfinger@otisco.mckusick.com, carlton@bactrian.org, gdb@sources.redhat.com, ezannoni@redhat.com, jimb@redhat.com References: <200305240811.h4O8BJu10644@otisco.McKusick.COM> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200305240811.h4O8BJu10644@otisco.McKusick.COM> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-05/txt/msg00340.txt.bz2 On Sat, May 24, 2003 at 01:11:19AM -0700, Paul N. Hilfinger wrote: > > > * Add a function > > > struct symbol *lookup_symbol_linkage (const char *name); > > > that looks up the symbol whose linkage name is NAME. It only looks > > up global or static symbols (with preference to the former), and > > only looks up symbols in VAR_DOMAIN; it doesn't apply any > > language-specific rules. This will, for example, give us a reliable > > way to find the symbol associated to a minsym, no matter how > > complicated C++ lookup rules make things. > > David, > > What exactly is the reasoning that says that such lookups needn't consider > local (or rather non-static/global) symbols? Normally, symbols with a linkage name (i.e. that appear in the minsym table) are only global or static. Does Ada have an exception to this? -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer