This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug symtab/12707] physname regression: set print demangle off


https://sourceware.org/bugzilla/show_bug.cgi?id=12707

--- Comment #7 from Tom Tromey <tromey at redhat dot com> ---
(In reply to Tom Tromey from comment #6)
> I looked into my idea from comment #3 a bit.

> Symbol lookup would proceed by first looking up a name in this map,
> and, if found, using the mangled form as the search key.

For completion we can iterate over the names in the hash table.

> This would let us remove the demangled hash entirely from minimal
> symbols.
> 
> To get the reverse direction to be efficient we could make a second
> hash table, mapping the mangled form to a canonical demangled form.

If we needed this direction (not clear) then we could just re-run
the demangler anyway.  Or we can do like the current code, where the
name in the symtab actually points to an object in the hash.

> It all seems doable, maybe not even too hard.  And it has some
> benefits for users.  However I hesitated to follow through because I
> am concerned it might be taking the symbol tables in the wrong
> direction.

I'm not as concerned about this any more.

One wrinkle seems to be that we'd need a name canonicalizer for every
language.  Of course we ought to have this anyway ... the whole idea
is really about changing the representation of the objects, not really
about changing anything fundamental.  Any problems exposed are problems
already, I think.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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