This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 3/3] Move logic out of symbol_find_demangled_name
- From: Tom Tromey <tom at tromey dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Tom Tromey <tom at tromey dot com>, Yao Qi <qiyaoltc at gmail dot com>, gdb-patches at sourceware dot org
- Date: Fri, 17 Jun 2016 09:27:38 +0100
- Subject: Re: [RFA 3/3] Move logic out of symbol_find_demangled_name
- Authentication-results: sourceware.org; auth=none
- References: <1465051760-25840-1-git-send-email-tom at tromey dot com> <1465051760-25840-4-git-send-email-tom at tromey dot com> <86mvmywgj1 dot fsf at gmail dot com> <8760tl6xbf dot fsf at tromey dot com> <9b062e13-3541-b122-2da8-1c61fe7fe55b at redhat dot com> <871t496nk4 dot fsf at tromey dot com> <7c3ef506-e9f3-968d-c192-c67c99e00269 at redhat dot com>
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