From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gateway32.websitewelcome.com (gateway32.websitewelcome.com [192.185.145.182]) by sourceware.org (Postfix) with ESMTPS id 26844385E006 for ; Wed, 25 Mar 2020 20:07:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 26844385E006 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=tom@tromey.com Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway32.websitewelcome.com (Postfix) with ESMTP id 5AAF61BA9C for ; Wed, 25 Mar 2020 15:07:17 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id HCJ3jdsGAVQh0HCJ3jrpID; Wed, 25 Mar 2020 15:07:17 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:MIME-Version :Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tJWFHqE4C9wOkmiPHqxOjG8XWCQv/nKvYrZelTZ0y/E=; b=lwKO7S9Ehu0SwH1Zp1bvRzWPSw UJ2XUFWF9+lckpleoeV6J78CpVqOFtDKnuqeyOCU4B2E0c1TFGjrE8b1Qv0ct8tuA5RWdHWBqEolu XmDGxNyujgs0cE5cEqIreQE5G; Received: from 97-118-117-21.hlrn.qwest.net ([97.118.117.21]:38026 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1jHCJ3-001VYp-4t for gdb-patches@sourceware.org; Wed, 25 Mar 2020 14:07:17 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Subject: [PATCH 00/10] Fix two name-related bugs in DWARF reader Date: Wed, 25 Mar 2020 14:07:05 -0600 Message-Id: <20200325200715.12947-1-tom@tromey.com> X-Mailer: git-send-email 2.17.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.118.117.21 X-Source-L: No X-Exim-ID: 1jHCJ3-001VYp-4t X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-118-117-21.hlrn.qwest.net (bapiya.Home) [97.118.117.21]:38026 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, RCVD_IN_ABUSEAT, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2020 20:07:20 -0000 I started this series by trying to fix PR rust/25025. This showed that the Rust compiler sometimes emits two mangled forms that demangle to the same thing. In the end I could maybe have fixed this in a direct way (see patch #9 for the details), but while debugging I went on a detour into the physname code and came up with this series. This changes the DWARF reader to avoid demangling when constructing partial symbols. This obsoletes my previous patch to do the same thing; I think this approach is cleaner. It also attempts to fix the longstanding physname bug, PR 12707. After this series, the demangled form is now stored on the symbol again. Regression tested by the buildbot. Tom