From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35287 invoked by alias); 17 Jun 2016 08:28:03 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 35270 invoked by uid 89); 17 Jun 2016 08:28:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=replying, onward, minimal X-HELO: gproxy5-pub.mail.unifiedlayer.com Received: from gproxy5-pub.mail.unifiedlayer.com (HELO gproxy5-pub.mail.unifiedlayer.com) (67.222.38.55) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Fri, 17 Jun 2016 08:27:52 +0000 Received: (qmail 5177 invoked by uid 0); 17 Jun 2016 08:27:48 -0000 Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy5.mail.unifiedlayer.com with SMTP; 17 Jun 2016 08:27:48 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by cmgw4 with id 7kTk1t0042f2jeq01kTnmz; Fri, 17 Jun 2016 02:27:48 -0600 X-Authority-Analysis: v=2.1 cv=ecGuId0H c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=PnD2wP_eR3oA:10 a=5ZIDqeGxTpQA:10 a=pD_ry4oyNxEA:10 a=i4vYIuQUrgMI4WY4fKUA:9 Received: from [31.55.19.159] (port=36412 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_2) (envelope-from ) id 1bDp7v-0001Wp-Hd; Fri, 17 Jun 2016 02:27:43 -0600 From: Tom Tromey To: Pedro Alves Cc: Tom Tromey , Yao Qi , gdb-patches@sourceware.org Subject: Re: [RFA 3/3] Move logic out of symbol_find_demangled_name References: <1465051760-25840-1-git-send-email-tom@tromey.com> <1465051760-25840-4-git-send-email-tom@tromey.com> <86mvmywgj1.fsf@gmail.com> <8760tl6xbf.fsf@tromey.com> <9b062e13-3541-b122-2da8-1c61fe7fe55b@redhat.com> <871t496nk4.fsf@tromey.com> <7c3ef506-e9f3-968d-c192-c67c99e00269@redhat.com> Date: Fri, 17 Jun 2016 08:28:00 -0000 In-Reply-To: <7c3ef506-e9f3-968d-c192-c67c99e00269@redhat.com> (Pedro Alves's message of "Mon, 13 Jun 2016 14:35:04 +0100") Message-ID: <874m8sp6dh.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 31.55.19.159 authed with tom+tromey.com} X-Exim-ID: 1bDp7v-0001Wp-Hd X-Source-Sender: (pokyo) [31.55.19.159]:36412 X-Source-Auth: tom+tromey.com X-Email-Count: 0 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-SW-Source: 2016-06/txt/msg00285.txt.bz2 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