From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id uYbaNkcHYGnbITMAWB0awg (envelope-from ) for ; Thu, 08 Jan 2026 14:36:39 -0500 Received: by simark.ca (Postfix, from userid 112) id DE3331E08D; Thu, 08 Jan 2026 14:36: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 744B11E08D for ; Thu, 08 Jan 2026 14:36:39 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 11D064BA2E25 for ; Thu, 8 Jan 2026 19:36:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 11D064BA2E25 Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id B5CE34BA2E07 for ; Thu, 8 Jan 2026 19:35:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B5CE34BA2E07 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 B5CE34BA2E07 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=1767900909; cv=none; b=N42Tz2Y5xdHO802PhybI5KUXaJB/kKMuR8cb91oHIyijna968s3CAtfF09+fhe4bI+n1HxH4GNtnO+pC7t2lY8R0aON6BOW6KCrKbmN0Nz1C+FhKIfj0d0mJYZWXvUZBK08sl9vPv+BAlEUTXz3/a5O/vFspaN7T0VRQwysB4IQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1767900909; c=relaxed/simple; bh=hfH+ZMkrKpcwBbIQbUl89diH63/tqRCacnoomriEsdk=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=FGGlrO9T4R5Om+i7hokWa66s0JcYWWWZROi0Mf4bQnTYSMuLOl9RQ5rojab4xv8fuppvGZDJBaGys9SBPgy2DtQO5yRVmNCulFLoPIxWUBKuCkJ0IX2Oh2sZtSH4WddmZ81n/R47Zw3yVLWcS2UuzZCOFnuw1taOf8A0BbJUNag= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B5CE34BA2E07 Received: by simark.ca (Postfix) id 3FCDB1E0B6; Thu, 08 Jan 2026 14:35:09 -0500 (EST) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 2/8] gdb/xcoffread: remove read of .debug section Date: Thu, 8 Jan 2026 14:33:20 -0500 Message-ID: <20260108193507.553779-3-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 This is not used by anything. Change-Id: Icc5e72b2f30521b8856db46f4d6cabf26f615b0b --- gdb/xcoffread.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index d46b4eb23f3d..43d3cec2e49b 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -38,9 +38,6 @@ struct xcoff_symfile_info { - /* Pointer to debug section. */ - char *debugsec = nullptr; - /* Pointer to the a.out symbol table. */ char *symtbl = nullptr; @@ -300,37 +297,6 @@ xcoff_initial_scan (struct objfile *objfile, symfile_add_flags symfile_flags) num_symbols = bfd_get_symcount (abfd); /* # of symbols */ symtab_offset = obj_sym_filepos (abfd); /* symbol table file offset */ - if (num_symbols > 0) - { - /* Read the .debug section, if present and if we're not ignoring - it. */ - if (!(objfile->flags & OBJF_READNEVER)) - { - struct bfd_section *secp; - bfd_size_type length; - bfd_byte *debugsec = NULL; - - secp = bfd_get_section_by_name (abfd, ".debug"); - if (secp) - { - length = bfd_get_section_alloc_size (abfd, secp); - if (length) - { - debugsec - = (bfd_byte *) obstack_alloc (&objfile->objfile_obstack, - length); - - if (!bfd_get_full_section_contents (abfd, secp, &debugsec)) - { - error (_("Error reading .debug section of `%s': %s"), - name, bfd_errmsg (bfd_get_error ())); - } - } - } - info->debugsec = (char *) debugsec; - } - } - /* Read the symbols. We keep them in core because we will want to access them randomly in read_symbol*. */ val = bfd_seek (abfd, symtab_offset, SEEK_SET); -- 2.52.0