From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4249 invoked by alias); 24 May 2003 21:10:51 -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 4242 invoked from network); 24 May 2003 21:10:50 -0000 Received: from unknown (HELO jackfruit.Stanford.EDU) (171.64.38.136) by sources.redhat.com with SMTP; 24 May 2003 21:10:50 -0000 Received: (from carlton@localhost) by jackfruit.Stanford.EDU (8.11.6/8.11.6) id h4OLAgh07100; Sat, 24 May 2003 14:10:42 -0700 X-Authentication-Warning: jackfruit.Stanford.EDU: carlton set sender to carlton@math.stanford.edu using -f To: Hilfinger@otisco.mckusick.com Cc: gdb@sources.redhat.com, ezannoni@redhat.com, jimb@redhat.com, drow@mvista.com Subject: Re: [rfc] lookups with natural/linkage names References: <200305240811.h4O8BJu10644@otisco.McKusick.COM> From: David Carlton Date: Sat, 24 May 2003 21:10:00 -0000 In-Reply-To: <200305240811.h4O8BJu10644@otisco.McKusick.COM> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-05/txt/msg00343.txt.bz2 On Sat, 24 May 2003 01:11:19 -0700, "Paul N. Hilfinger" said: >> * 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. > What exactly is the reasoning that says that such lookups needn't > consider local (or rather non-static/global) symbols? Linkage names are intended to support symbols that the linker knows about. Those are all global or static, those are all in VAR_DOMAIN. Basically, the point of this function is to support things like reliably looking up a symbol associated to a minsym. Does Ada have exceptions to this? Does Ada somehow mangle names of local variables or something? If so, why, and how is that represented in the debug info? David Carlton carlton@math.stanford.edu