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 A9BB43858289 for ; Sun, 10 Dec 2023 16:45:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A9BB43858289 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 A9BB43858289 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=1702226710; cv=none; b=TL4F8jX5l0M7KDKczydd3MobBkiWBZErBdUbBxW9EHVHIXJp/YxhdU08xp5kzzGismVxAIfKIpLqpYQFoqb6BN7PsQdeEOHMRd6W0V/lzJKu446yHRg3VLx7J4jzF/MmTSzgUKxaGA3Nyp8NRXLcY+g+DcNdrEew3/6eK9FC3LM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702226710; c=relaxed/simple; bh=eMx+4L4GYNUQJffWO4fSjCeNdx74qdONTHs4rLB+TuY=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=QSxn/f1OdFFXRC/FPLimI4oIQcJ8R5/6OX7VgriWWxj5KG0q8CEp4T++aAWu80nw/Liu8gcZdnMI3t6oLrCUEBvLBf3+wTe6IMcjMQ/c512gdJjTgR/wJ9D6Yfb3EkX7uAiS3X9/03aI6VycJsPfNCXDfr2rWvEEXE/oqA5NE3g= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6006a.ext.cloudfilter.net ([10.0.30.182]) by cmsmtp with ESMTPS id CDnJr43Cv8HteCMvRr8csX; Sun, 10 Dec 2023 16:45:05 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id CMvRrVWdkGKIcCMvRrYj6h; Sun, 10 Dec 2023 16:45:05 +0000 X-Authority-Analysis: v=2.4 cv=E+beGIRl c=1 sm=1 tr=0 ts=6575eb11 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=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=acluzI0GAXlGfnwlP6YrPZg80BpvqOwsS5la9JZFHMI=; b=nvibGH5jHfBkQivMJ1sQqGTUQj OArRXNbUrKcsVWtLWHI3+IZ5jqq9ysk2ZP5uF+Nu8veC8W9prtfltOGROUt7uHVMtT1TY/2GXt+XH 3m0fUMQSkOc8iyD2KXsoIjTrR; 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 1rCMvR-001rpu-0J for gdb-patches@sourceware.org; Sun, 10 Dec 2023 09:45:05 -0700 From: Tom Tromey Date: Sun, 10 Dec 2023 09:45:05 -0700 Subject: [PATCH 16/17] Export dwarf5_augmentation MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231210-debug-names-fix-v1-16-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: 1rCMvR-001rpu-0J 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: 17 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfJw+bshDQT4Df9APuJnmfM1WY0R109aPPDfV8Hg7EksSpUtOAqh5NeeyptdjX7NAArj2V5NZr+hvGyrY8Iprj9aarLS/N/GY0KhuuqzeuRHoyP54Zlgz DXWiXxw0jUfRb3dmLWa8rtV+nx77TtsW7DEQfdUhOjVo7hL1Z+G3T/701Dk3nqHs0CxbKTiAssXiCcJAPe1ykp72fq5ek3FXfpY= X-Spam-Status: No, score=-3024.4 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 1e53c246b91..4325a5ddcc6 100644 --- a/gdb/dwarf2/read-debug-names.c +++ b/gdb/dwarf2/read-debug-names.c @@ -402,8 +402,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 0c20e8cfb8d..9240d3c08c1 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