From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id k6UCKbXUdGXvChwAWB0awg (envelope-from ) for ; Sat, 09 Dec 2023 15:57:25 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=pDlcadv/; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 9CFDB1E0D2; Sat, 9 Dec 2023 15:57:25 -0500 (EST) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 687CF1E091 for ; Sat, 9 Dec 2023 15:57:23 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8CB333858293 for ; Sat, 9 Dec 2023 20:57:22 +0000 (GMT) Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id AA9633858C98 for ; Sat, 9 Dec 2023 20:57:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AA9633858C98 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 AA9633858C98 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702155431; cv=none; b=hft+x0UNOviH9uhmAY+LoSKgJlt3md5TOvS1e0wbalm+4WUH/MGPhod2KBBTYklm6ubcJKuH3Ytz3rYhvYUz5k521FQtIxJucD1WabfGae8GwKjWRv5gUUjMiANhdlvHlRzaxGUDSmqgpqh2XhiQAoaKlmiATzIIirscBiyuGkQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702155431; c=relaxed/simple; bh=K5RwEQmL3EbZwTHA+jNMogsuv2jpagnCin6nC+YcD2I=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ZUkOlB3QtpHLSrYM31UQZmk83Tq2UHKioM1wuyjTbj1K9xPRl2c3J7oXhHf8NbjSy/u39mA6EwqdzLEeZ1FjbjvMj5ioy7IoMufS/oCGs7vT5mSYli1cWpF/nIYl13zDL7WFT4CkBK1vDtuVa+Sg6O0EJk8OdVBH0cfvrT5TS1A= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-5008a.ext.cloudfilter.net ([10.0.29.246]) by cmsmtp with ESMTPS id C0SOrTV046nOZC4NornJoY; Sat, 09 Dec 2023 20:57:08 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id C4NnrGTzkkUbtC4Nnrt2R4; Sat, 09 Dec 2023 20:57:07 +0000 X-Authority-Analysis: v=2.4 cv=WpU4jPTv c=1 sm=1 tr=0 ts=6574d4a4 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=e2cXIFwxEfEA:10 a=Qbun_eYptAEA:10 a=EzHsKoSp8snN18nz48UA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type: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=xYXhqRFj9t0DmHapuNET4LemMyO2IsWTOlEG3AnVoh4=; b=pDlcadv/f5pv6MLN/f36qIiOAz al8wEaXeUAgfijqmEBk1huhnUYIJ+iPfjy8LVWu7crWXrGpmLbC9k65tc9N2pznuRQakO5VmwKhD4 cFXX45ZkTIX9Y881qhUtBqDkV; Received: from 71-211-161-25.hlrn.qwest.net ([71.211.161.25]:59332 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rC4Nn-002bLe-0S; Sat, 09 Dec 2023 13:57:07 -0700 From: Tom Tromey To: gcc-patches@gcc.gnu.org Cc: gdb-patches@sourceware.org, Tom Tromey Subject: [PATCH] Add some new DW_IDX_* constants Date: Sat, 9 Dec 2023 13:56:53 -0700 Message-ID: <20231209205653.3930232-1-tom@tromey.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: 71.211.161.25 X-Source-L: No X-Exim-ID: 1rC4Nn-002bLe-0S X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 71-211-161-25.hlrn.qwest.net (localhost.localdomain) [71.211.161.25]:59332 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: MS4xfFP3MbKoBKfeV35+c0G2gYxuX/dVF8f9uAtrAe21Q5VeQwcTIOYg0zCM4sIXM1tqjYZOlF3zYiVKIhwzqmYV0+Xy6JaflpQDPRE6wBt43xBpkqUmBgrL 5ye2wmGywjWPB4D8tlJiA8z1U7WniC7DXqBCK5mHsIDyacbEXvcws2tW2BGGOOPmHD5IA7AW0wpkDjz0Tg63jC7mNZn4WE0RcH0= X-Spam-Status: No, score=-3023.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, 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 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org I've reimplemented the .debug_names code in GDB -- it was quite far from being correct, and the new implementation is much closer to what is specified by DWARF. However, the new 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. (My patch series 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 7ab3ee611fd4..75b75d901884 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