This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc] lookups with natural/linkage names


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]