From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta38.uswest2.a.cloudfilter.net (omta38.uswest2.a.cloudfilter.net [35.89.44.37]) by sourceware.org (Postfix) with ESMTPS id 912243858016 for ; Wed, 17 Jan 2024 16:39:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 912243858016 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 912243858016 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705509586; cv=none; b=YsB7JHacpI+eTSAzBKaCRpArNxrEK2fSjrZ7qTbD8BbYi/E9HqJ7GBzzMqmHQXwT1Kt/t/l9PUEthHYSrPWDeT0KZFBtJ7WC4llBRQ1yk52YZaUG7tjETT926eGbK5afoEF6bdK3crpQOc4joijItnY5oVfi+Fm8mKOOzYiXT1A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705509586; c=relaxed/simple; bh=S19mRcG8mT9zTgiqwymuugfAyb/VHP0EeKEOItxaMLg=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=hiibZF4g/h8BDLw6kbIPZuXaCdnK7j3qatFZPWVOsxzqQ4bcuvVN9G4Tb5rHI5/3xqVewY4ew7RvoVsJD5fIRsJ8+2llsxmATNiha+7KVn4HO/2xzlNHc//H6ES/NdRE+KnE2fbgRECfnk9HIjMOLrpi7h424JkI4A9+TYF1Sj4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-5004a.ext.cloudfilter.net ([10.0.29.221]) by cmsmtp with ESMTPS id PvDorWLQ9oMN9Q8x3rBJP3; Wed, 17 Jan 2024 16:39:41 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id Q8x2rVdk5KleDQ8x2rxCHh; Wed, 17 Jan 2024 16:39:41 +0000 X-Authority-Analysis: v=2.4 cv=KcbBDCUD c=1 sm=1 tr=0 ts=65a802cd a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10 a=dEuoMetlWLkA:10 a=Qbun_eYptAEA:10 a=ugJkGtTL7mLjBSdyETsA: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=Ec/u3KkuwtA1kvbl49EKdpwPCJ0tfIFPAm6Ljop2q7U=; b=oXlG8H3q+IIZs0bZL9bqHy0mFN rl/hjJTkPwx+yyrXTkkDr2ayQGMzgXfdaFC8CFTvdUkoJ6KBEnvNVKuIyDlk3fv5XIEE3sfJozx4G XnoxoCTcx5UDTD14hzg/YACVN; Received: from 97-122-68-157.hlrn.qwest.net ([97.122.68.157]:56636 helo=[192.168.0.21]) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rQ8x2-002OXE-0N for gdb-patches@sourceware.org; Wed, 17 Jan 2024 09:39:40 -0700 From: Tom Tromey Date: Wed, 17 Jan 2024 09:39:44 -0700 Subject: [PATCH v2 16/17] Export dwarf5_augmentation MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240117-debug-names-fix-v2-16-dbd5971a9c31@tromey.com> References: <20240117-debug-names-fix-v2-0-dbd5971a9c31@tromey.com> In-Reply-To: <20240117-debug-names-fix-v2-0-dbd5971a9c31@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: 97.122.68.157 X-Source-L: No X-Exim-ID: 1rQ8x2-002OXE-0N X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-68-157.hlrn.qwest.net ([192.168.0.21]) [97.122.68.157]:56636 X-Source-Auth: tom+tromey.com X-Email-Count: 21 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfPTZhZSBjBbG1JOhD7lANWIeTkLMiE9LpuppL+pmN/5gAoUc08oDFsX+leq8h/tTD+2Z/yEUEw0Jc7JPhdUSDXNLuplrvoCk/x+0dDnR699DY5ACYwG+ f4Z9K5K++nb7rEMw1evsepMWl6Cm9gGTbbAVsOzCy437lQCBLgPiuTVsTc13RTmpvRbMQggxcGRvMmW+AdmLax19NJ77cBdWHDA= X-Spam-Status: No, score=-3022.7 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: I don't know why gdb had the .debug_names augmentation string in two separate places; this patch exports it in one spot, to be used in another. --- gdb/dwarf2/read-debug-names.c | 3 +-- gdb/dwarf2/read-debug-names.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gdb/dwarf2/read-debug-names.c b/gdb/dwarf2/read-debug-names.c index 52caff725ca..e2563e84fcf 100644 --- a/gdb/dwarf2/read-debug-names.c +++ b/gdb/dwarf2/read-debug-names.c @@ -404,8 +404,7 @@ static_assert (sizeof (old_gdb_augmentation) % 4 == 0); /* DWARF-5 augmentation string for GDB's DW_IDX_GNU_* extension. This must have a size that is a multiple of 4. */ -static const gdb_byte dwarf5_augmentation[] - = { 'G', 'D', 'B', '2', 0, 0, 0, 0 }; +const gdb_byte dwarf5_augmentation[8] = { 'G', 'D', 'B', '2', 0, 0, 0, 0 }; static_assert (sizeof (dwarf5_augmentation) % 4 == 0); /* A helper function that reads the .debug_names section in SECTION diff --git a/gdb/dwarf2/read-debug-names.h b/gdb/dwarf2/read-debug-names.h index 97d477f958b..e616cf887a7 100644 --- a/gdb/dwarf2/read-debug-names.h +++ b/gdb/dwarf2/read-debug-names.h @@ -22,6 +22,8 @@ struct dwarf2_per_objfile; +extern const gdb_byte dwarf5_augmentation[8]; + /* Read .debug_names. If everything went ok, initialize the "quick" elements of all the CUs and return true. Otherwise, return false. */ -- 2.43.0