From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by sourceware.org (Postfix) with ESMTPS id D05033858418 for ; Fri, 14 Oct 2022 16:09:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D05033858418 Received: by mail-il1-x131.google.com with SMTP id u10so2749763ilm.5 for ; Fri, 14 Oct 2022 09:09:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aidos5fnXS4XnueVpOloaMdZot09zA90C/4FPvzAA1Y=; b=IAzeyWEiCCzKscBrfLP1PL0XcC8SmTCxnaPvBlN6wyrm1uB0e3seY2vHqq14zStfYR qRcysfR1Qh4RUS6qayxsUEQPfPEbzqoDVJtE0DDcluQI8xee/903CLfQtvfacg9hBlMN Thx9XdWgKxATSvY2ID/UdQjO2jz6+xMZ5SFclJgUmlu/TLlRbuMtM6/gQq6O23OiCzoR /d3/+5uNMiBSZCYfzAIos+wtRTSXlE83a9m4W847LQWuENkdyeDlLsMUomiHDWOOMqh6 aO6VVZdgS/fYo/JQP/uIOydyuwg62BFSONU3NlKJmhSqKcYy5WjQEAKd/FxwkOP3wNOS vHMg== X-Gm-Message-State: ACrzQf1LkBeeHUN2bWboJFB02dG3irbU8uXCjY07ZIciee7ZUiVQpnNy z34WyzHfCkhj4xsyYtAqjlhYINWpr8R9sA== X-Google-Smtp-Source: AMsMyM5zqbOBVblFZ/f+pStyS/Kjpjwqma5Lu48fzufxSPqMqBiKploHqVOtN5K4kuExeMR+Fj1lKw== X-Received: by 2002:a05:6e02:1bab:b0:2fa:2cfb:80e3 with SMTP id n11-20020a056e021bab00b002fa2cfb80e3mr2792388ili.24.1665763742137; Fri, 14 Oct 2022 09:09:02 -0700 (PDT) Received: from localhost.localdomain (71-211-160-49.hlrn.qwest.net. [71.211.160.49]) by smtp.gmail.com with ESMTPSA id b7-20020a026f47000000b00363b0517662sm1275501jae.12.2022.10.14.09.09.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 09:09:01 -0700 (PDT) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH v2 2/4] Don't add type linkage names to cooked index Date: Fri, 14 Oct 2022 10:08:47 -0600 Message-Id: <20221014160849.919621-3-tromey@adacore.com> X-Mailer: git-send-email 2.34.3 In-Reply-To: <20221014160849.919621-1-tromey@adacore.com> References: <20221014160849.919621-1-tromey@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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 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: Fri, 14 Oct 2022 16:09:17 -0000 The compiler will sometimes emit a linkage name for a type, like: <1d3> DW_AT_linkage_name: (indirect string, offset: 0x106f): 11__mbstate_t These names aren't very useful, and this patch changes the DWARF reader so that they are ignored by the cooked index. --- gdb/dwarf2/read.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 78f4cc1f60d..96069545000 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -17991,11 +17991,6 @@ tag_can_have_linkage_name (enum dwarf_tag tag) { switch (tag) { - /* We include types here because an anonymous C++ type might - have a name for linkage purposes. */ - case DW_TAG_class_type: - case DW_TAG_structure_type: - case DW_TAG_union_type: case DW_TAG_variable: case DW_TAG_subprogram: return true; -- 2.34.3