This is the mail archive of the gdb-patches@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: RFA: Search for symbol names the same way they're hashed.


On Wed, 2 Oct 2002 16:02:03 -0400, Daniel Jacobowitz <drow@mvista.com> said:

> Dare I suggest SYMBOL_SEARCH_NAME?  That is, the only name we should
> search for when we're looking up this function in symbol tables.
> Since that's the other use.

That makes sense; the main thing that worries me is that I'm not sure
that we might not sometimes search by other names (at least in the
minimal symbol table?).  I think that, if SYMBOL_SOURCE_NAME didn't
already exist, then I'd prefer SYMBOL_SOURCE_NAME to
SYMBOL_SEARCH_NAME; but there's probably some advantage to not having
anything called SYMBOL_SOURCE_NAME.  Hmm; I could go either way on
this one.

> I agree about SYMBOL_PRINT_NAME... or, how about
> SYMBOL_PRINTABLE_NAME?

SYMBOL_PRINT_NAME is better, I think: lots of names are printable, but
we're only going to print one of them.  (Though I like the idea of a
function SYMBOL_PRINTABLE_NAME that takes an unprintable symbol name
and bowdlerizes it by putting asterisks in place of swear words...)

David Carlton
carlton@math.stanford.edu


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