From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 4B8D53858291; Mon, 17 Oct 2022 16:10:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4B8D53858291 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666023055; bh=fmzNfCPVSYEyuBMn7FshP1bcOFMKxGTOTKPIaEmr+jw=; h=From:To:Subject:Date:From; b=TpSQmF+dqyQ3R4q9N1s/MHqm6NWBHxU/Q4bZsNIbTjQ0SExggEJz7MaIdAIIFkEv9 sKGTID7nTG6wTOjSgrYPAfWd/UP0Siyb4nclnYU07lJ5NGceNnwB+TsHobz9q6HhxJ 24jd6n6/Ax0DiMG2aAMd37hMy2gzxCnMdP3aj1Q8= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Don't add type linkage names to cooked index X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 67e83a0deef78e9e286b663efd5a7144f09dbb95 X-Git-Newrev: acd121de32c3924347f228d8f27000a09b9c8949 Message-Id: <20221017161055.4B8D53858291@sourceware.org> Date: Mon, 17 Oct 2022 16:10:55 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dacd121de32c3= 924347f228d8f27000a09b9c8949 commit acd121de32c3924347f228d8f27000a09b9c8949 Author: Tom Tromey Date: Fri Oct 14 07:08:57 2022 -0600 Don't add type linkage names to cooked index =20 The compiler will sometimes emit a linkage name for a type, like: =20 <1d3> DW_AT_linkage_name: (indirect string, offset: 0x106f): 11__= mbstate_t =20 These names aren't very useful, and this patch changes the DWARF reader so that they are ignored by the cooked index. Diff: --- gdb/dwarf2/read.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index e62f9752a80..33dfd52b362 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;