From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta34.uswest2.a.cloudfilter.net (omta34.uswest2.a.cloudfilter.net [35.89.44.33]) by sourceware.org (Postfix) with ESMTPS id 77ECB3858416 for ; Sun, 10 Dec 2023 16:45:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 77ECB3858416 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 77ECB3858416 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702226706; cv=none; b=BEkqiYcMw7W4t5tfbNrwfwGHwRJX5Wnd+actqE6LLtixWmjXFmNJWmi95Hdlcd0Xplq1OwQwpkmh6PEKNPZOsHvk6f8MNxR3z4CQpehx5K9+tQYmWB/4qkZkIu3q+i9Rl/oj7MOSjYrng5dAnv/JChcUPcfy+z2etcAh6ZZZbbA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702226706; c=relaxed/simple; bh=FsSQSUxpM3zg3F/Bpolw2VhgX/r7sBdJTCng8bZGHH8=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=qL9Iy7rgvUx/AmIQyoQZSy/B/VJGr1uEIYYqMq5t0xMLX0XtkCRMM9CB82/Fmp8WlqMcr4VKg3AYL5syWW+T5PRYdNu3SVpCMMyIwdRYm1NaT5g1oOkWIRGyWTd832j3FCsrqgmix/FcFWY9b42v+pbZ1wPtlqpVekHwtFhRICw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6003a.ext.cloudfilter.net ([10.0.30.151]) by cmsmtp with ESMTPS id CK6Cr4rJV8HteCMvPr8cql; Sun, 10 Dec 2023 16:45:03 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id CMvOrHFzUAKScCMvPrYcOz; Sun, 10 Dec 2023 16:45:03 +0000 X-Authority-Analysis: v=2.4 cv=N6w6qkxB c=1 sm=1 tr=0 ts=6575eb0f a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10 a=e2cXIFwxEfEA:10 a=Qbun_eYptAEA:10 a=EzHsKoSp8snN18nz48UA:9 a=QEXdDO2ut3YA:10 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=To:In-Reply-To:References:Message-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:Date:From:Sender:Reply-To:Cc: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=+911zSkH8ujifaJ+ai6HpM/Tu8zGW8luGF8RcFjzsdY=; b=J4Ntqtc2bNVFX/ZuqTyNYfnUKT ZEb+3CyrAsMh+OGguiCKITzHYzU0qjc1jGws0eUwlAgjgkmzie63FtJwKjDpqS+y6GvaJPvKd0kcu NDaIx3YHGugo1DiI27JYfVU18; Received: from [198.59.47.65] (port=52394 helo=[192.168.131.83]) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rCMvO-001rpu-1V for gdb-patches@sourceware.org; Sun, 10 Dec 2023 09:45:02 -0700 From: Tom Tromey Date: Sun, 10 Dec 2023 09:44:53 -0700 Subject: [PATCH 04/17] Add some new DW_IDX_* values MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231210-debug-names-fix-v1-4-a8f6d2525018@tromey.com> References: <20231210-debug-names-fix-v1-0-a8f6d2525018@tromey.com> In-Reply-To: <20231210-debug-names-fix-v1-0-a8f6d2525018@tromey.com> To: gdb-patches@sourceware.org X-Mailer: b4 0.12.4 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: 198.59.47.65 X-Source-L: No X-Exim-ID: 1rCMvO-001rpu-1V X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.131.83]) [198.59.47.65]:52394 X-Source-Auth: tom+tromey.com X-Email-Count: 5 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfFhYR7VXyw6cTLRU5M4rQDD7hIBxwe6gQmf5BHeThwRgR0ykf/A6CLrpVXYwcI/8DX8S2bJ2VCwlmqbwKoTPw9tr7gbJHfq6ACJE7vxKMic9Q93zNHJz ecwR/P6ynb3/Kx56/2PlTn84p5xraABajxiya35fbFBqwinb6wCKakvMfIC3xRk/doxnP8xdjfC4EMg9QosyozApgqPy9o2LbLg= X-Spam-Status: No, score=-3024.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,GIT_PATCH_0,JMQ_SPF_NEUTRAL,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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: The new .debug_names writer in GDB needs to emit some symbol properties, so that the reader can be fully functional. This patch adds a few new DW_IDX_* constants, and tries to document the existing extensions as well. (I will add more documentation of these to the GDB manual as well.) --- include/dwarf2.def | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/dwarf2.def b/include/dwarf2.def index 7ab3ee611fd..75b75d90188 100644 --- a/include/dwarf2.def +++ b/include/dwarf2.def @@ -802,8 +802,17 @@ DW_IDX (DW_IDX_parent, 4) DW_IDX (DW_IDX_type_hash, 5) DW_IDX_DUP (DW_IDX_lo_user, 0x2000) DW_IDX (DW_IDX_hi_user, 0x3fff) +/* Internal linkage. A flag. */ DW_IDX (DW_IDX_GNU_internal, 0x2000) +/* External linkage. A flag. Note that gdb no longer generates this; + the default is to assume external linkage. */ DW_IDX (DW_IDX_GNU_external, 0x2001) +/* This entry is the program's entry point. A flag. */ +DW_IDX (DW_IDX_GNU_main, 0x2002) +/* Language for this entry. A DW_LANG_* value. */ +DW_IDX (DW_IDX_GNU_language, 0x2003) +/* This entry is a linkage name. A flag. */ +DW_IDX (DW_IDX_GNU_linkage_name, 0x2004) DW_END_IDX /* DWARF5 Unit type header encodings */ -- 2.43.0