From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta33.uswest2.a.cloudfilter.net (omta33.uswest2.a.cloudfilter.net [35.89.44.32]) by sourceware.org (Postfix) with ESMTPS id 6CFDF3858D20 for ; Thu, 31 Aug 2023 18:44:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6CFDF3858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com Received: from eig-obgw-6005a.ext.cloudfilter.net ([10.0.30.201]) by cmsmtp with ESMTP id bksKq0bPUOzKlbmeVqJKvA; Thu, 31 Aug 2023 18:44:23 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id bmeTqwqRxjiVgbmeTqIgEy; Thu, 31 Aug 2023 18:44:21 +0000 X-Authority-Analysis: v=2.4 cv=Ge8EICbL c=1 sm=1 tr=0 ts=64f0df85 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=UttIx32zK-AA:10 a=Qbun_eYptAEA:10 a=JBymhuUsKauHa6AIZVoA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=EYJ+Jfutp+lRM12zqJWvygFnkKfNcRnNXS3jUo0wg24=; b=Yc9VO3m2sXgPuMJPm9o30PNnZd t7XbDk8Xi9W3Lu47flQ6XB+bfvPoWeGgAEZAxz9afWtKUqtda/+4kh9svD8aD6cioNnoUORxhdi63 A7wka6rnZawDd47knDaXgaZ9p; Received: from 75-166-150-212.hlrn.qwest.net ([75.166.150.212]:40560 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qbmeT-001vsq-0p; Thu, 31 Aug 2023 12:44:21 -0600 From: Tom Tromey To: Torbjorn SVENSSON via Gdb Cc: Tom Tromey , Torbjorn SVENSSON Subject: Re: GDB13 fails to build on MacOS using supplied GNU Bison 2.3 References: <0badf084-d0b7-54bb-aec6-b79f29ad191d@foss.st.com> <87jztbpccn.fsf@tromey.com> <0007c884-16a1-2fe3-e574-d9fe5c944c83@foss.st.com> X-Attribution: Tom Date: Thu, 31 Aug 2023 12:44:20 -0600 In-Reply-To: <0007c884-16a1-2fe3-e574-d9fe5c944c83@foss.st.com> (Torbjorn SVENSSON via Gdb's message of "Thu, 31 Aug 2023 16:01:34 +0200") Message-ID: <87bkenoxvf.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 75.166.150.212 X-Source-L: No X-Exim-ID: 1qbmeT-001vsq-0p X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-150-212.hlrn.qwest.net (murgatroyd) [75.166.150.212]:40560 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfD78bxe1tTDnhZIC0DFnZMaZhUoWP0PDuWUo9HCmFfbISQ1ovUkazkcQYru3R2K/TsNM6n3nFP4HubGyOuVIhWdU6NF9yk4mm3Ap9Ixqm7FVYyK0oKc+ K5BOhZgMI9oXxQySONXjxQpxxcUpFesuPbOgszdHYZacWLzfUXS5o+vT5qGQ8mMFV9uI66eDnk+WOg== X-Spam-Status: No, score=-3024.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_NUMSUBJECT,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Torbjorn> Not sure what you mean by "appended" here... I see no attachment and Torbjorn> my mail clarily stated that I could not generate the configure script Torbjorn> using the autotools. Sorry, forgot to append it. Tom diff --git a/gdb/dwarf2/cooked-index.c b/gdb/dwarf2/cooked-index.c index d6531260c86..58ea541a5c9 100644 --- a/gdb/dwarf2/cooked-index.c +++ b/gdb/dwarf2/cooked-index.c @@ -267,7 +267,7 @@ cooked_index_shard::handle_gnat_encoded_entry (cooked_index_entry *entry, if (canonical.empty ()) return {}; std::vector names = split_name (canonical.c_str (), - split_style::DOT); + split_style::DOT_STYLE); gdb::string_view tail = names.back (); names.pop_back (); diff --git a/gdb/split-name.h b/gdb/split-name.h index 47896cc4406..e385ed7dba5 100644 --- a/gdb/split-name.h +++ b/gdb/split-name.h @@ -30,8 +30,9 @@ enum class split_style NONE, /* C++ style, with "::" and template parameter intelligence. */ CXX, - /* Split at ".". Used by Ada, Go, D. */ - DOT, + /* Split at ".". Used by Ada, Go, D. This has a name to work + around a bug in Bison 2.3, which is used on macOS. */ + DOT_STYLE, /* Split at "__". Used by Ada encoded names. */ UNDERSCORE, }; diff --git a/gdb/symtab.h b/gdb/symtab.h index ee4729b14cd..ae9816dfc7d 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -305,7 +305,7 @@ class lookup_name_info final break; case language_d: case language_go: - style = split_style::DOT; + style = split_style::DOT_STYLE; break; } return ::split_name (language_lookup_name (lang), style);