This is the mail archive of the gdb-patches@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]

Re: [RFA 3/3] Move logic out of symbol_find_demangled_name


Pedro> Actually, AFAICS, the new code does the same thing, because the
Pedro> C++ version and the Rust version are exactly the same.

Yeah, I forgot about that when replying.

Pedro> IIUC, from Rust 1.9 onward, Rust uses C++ mangling, so basically
Pedro> there's no way to tell a C++ symbol from a Rust symbol from the
Pedro> mangled name alone.  Correct?

Yes.  Java is in this situation as well.  However I think it only
matters for minimal symbols as symbols coming from DWARF typically have
a language.

I think it would be better if Rust changed its mangling, but AFAIK
nobody has seriously proposed this there yet.

Tom


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