From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id aYctAQwHYGnNITMAWB0awg (envelope-from ) for ; Thu, 08 Jan 2026 14:35:40 -0500 Received: by simark.ca (Postfix, from userid 112) id EE6921E0BC; Thu, 08 Jan 2026 14:35:39 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (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 783A21E08D for ; Thu, 08 Jan 2026 14:35:39 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id F1BC04BA23DA for ; Thu, 8 Jan 2026 19:35:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1BC04BA23DA Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 1AAEB4BA2E1D for ; Thu, 8 Jan 2026 19:35:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1AAEB4BA2E1D Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=efficios.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1AAEB4BA2E1D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1767900910; cv=none; b=Imx/rkmJwRIVjmeQxsEetmMfEblxVGI6dGBElFjOJvyylRTF2LgkTUaXkWnvhXi2gpSSixZNy6pvEA8EZJ/ajb0tCIO0BryU8DODTIG1CUaSqunQsvc2Rb1N6nJVGtqpQxP7TzlKWIFOFFkC4qsQGTQ8/9fVZmaBPCvwce/bfAE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1767900910; c=relaxed/simple; bh=9KCzD17n3L6aieX6sCQbuMHXbyovxJPahWOrklj8oQo=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=p8OiVqdRFENwI1Db+o0QH6tKZWq6TML5FFafZXKfvDYc3ta0bJnSfDNkgA3VCRmxwhp9S3pve0JEDNibPtr/dmFkViX+kBbisGPf+I339119JWkdRHA/I64N0NsxewfpWE2aSJlUwYQAZ4TG1cT06HGgD6czyjsmirsCfIXjY7k= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1AAEB4BA2E1D Received: by simark.ca (Postfix) id 591251E0BC; Thu, 08 Jan 2026 14:35:09 -0500 (EST) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 3/8] gdb/xcoffread: remove XCOFF_DATA macro Date: Thu, 8 Jan 2026 14:33:21 -0500 Message-ID: <20260108193507.553779-4-simon.marchi@efficios.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260108193507.553779-1-simon.marchi@efficios.com> References: <20260108193507.553779-1-simon.marchi@efficios.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Change-Id: I3e2c681689f8386805041c9f007d399df545f6cd --- gdb/xcoffread.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 43d3cec2e49b..052bd6b78b28 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -52,11 +52,6 @@ struct xcoff_symfile_info static const registry::key xcoff_objfile_data_key; -/* Convenience macro to access the per-objfile XCOFF data. */ - -#define XCOFF_DATA(objfile) \ - xcoff_objfile_data_key.get (objfile) - /* XCOFF names for dwarf sections. There is no compressed sections. */ static const struct dwarf2_debug_sections dwarf2_xcoff_names = { @@ -173,8 +168,8 @@ scan_xcoff_symtab (struct objfile *objfile) abfd = objfile->obfd.get (); - sraw_symbol = XCOFF_DATA (objfile)->symtbl; - nsyms = XCOFF_DATA (objfile)->symtbl_num_syms; + sraw_symbol = xcoff_objfile_data_key.get (objfile)->symtbl; + nsyms = xcoff_objfile_data_key.get (objfile)->symtbl_num_syms; ssymnum = 0; while (ssymnum < nsyms) { @@ -257,7 +252,7 @@ scan_xcoff_symtab (struct objfile *objfile) Another place to obtain this information would be file auxiliary header. */ - XCOFF_DATA (objfile)->toc_offset = toc_offset; + xcoff_objfile_data_key.get (objfile)->toc_offset = toc_offset; } /* Return the toc offset value for a given objfile. */ @@ -266,7 +261,7 @@ CORE_ADDR xcoff_get_toc_offset (struct objfile *objfile) { if (objfile) - return XCOFF_DATA (objfile)->toc_offset; + return xcoff_objfile_data_key.get (objfile)->toc_offset; return 0; } @@ -290,7 +285,7 @@ xcoff_initial_scan (struct objfile *objfile, symfile_add_flags symfile_flags) const char *name; unsigned int size; - info = XCOFF_DATA (objfile); + info = xcoff_objfile_data_key.get (objfile); abfd = objfile->obfd.get (); name = objfile_name (objfile); -- 2.52.0