From: Simon Marchi <simon.marchi@efficios.com>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: [PATCH 2/3] gdb/coffread: remove unused fields of coff_symfile_info
Date: Fri, 9 Jan 2026 14:14:36 -0500 [thread overview]
Message-ID: <20260109191441.486109-2-simon.marchi@efficios.com> (raw)
In-Reply-To: <20260109191441.486109-1-simon.marchi@efficios.com>
Change-Id: I34ae3f3ab17764d40e695a61894d155652a708dd
---
gdb/coffread.c | 20 ++------------------
1 file changed, 2 insertions(+), 18 deletions(-)
diff --git a/gdb/coffread.c b/gdb/coffread.c
index c48431efe429..4fbe0fb9e461 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -47,11 +47,7 @@ struct coff_symfile_info
file_ptr min_lineno_offset = 0; /* Where in file lowest line#s are. */
file_ptr max_lineno_offset = 0; /* 1+last byte of line#s in file. */
- CORE_ADDR textaddr = 0; /* Addr of .text section. */
- unsigned int textsize = 0; /* Size of .text section. */
std::vector<asection *> *stabsects; /* .stab sections. */
- asection *stabstrsect = nullptr; /* Section pointer for .stab section. */
- char *stabstrdata = nullptr;
};
/* Key for COFF-associated data. */
@@ -222,20 +218,8 @@ coff_locate_sections (bfd *abfd, asection *sectp, void *csip)
csi = (struct coff_symfile_info *) csip;
name = bfd_section_name (sectp);
- if (strcmp (name, ".text") == 0)
- {
- csi->textaddr = bfd_section_vma (sectp);
- csi->textsize += bfd_section_size (sectp);
- }
- else if (startswith (name, ".text"))
- {
- csi->textsize += bfd_section_size (sectp);
- }
- else if (strcmp (name, ".stabstr") == 0)
- {
- csi->stabstrsect = sectp;
- }
- else if (startswith (name, ".stab"))
+
+ if (startswith (name, ".stab"))
{
const char *s;
--
2.52.0
next prev parent reply other threads:[~2026-01-09 19:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-09 19:14 [PATCH 1/3] gdb/coffread: remove unnecessary forward declarations Simon Marchi
2026-01-09 19:14 ` Simon Marchi [this message]
2026-01-09 19:24 ` [PATCH 2/3] gdb/coffread: remove unused fields of coff_symfile_info Tom Tromey
2026-01-09 19:14 ` [PATCH 3/3] gdb/coffread: simplify stab section detection Simon Marchi
2026-01-09 19:29 ` Tom Tromey
2026-01-09 19:36 ` Simon Marchi
2026-01-09 19:41 ` [PATCH v2] " Simon Marchi
2026-01-09 20:49 ` Tom Tromey
2026-01-09 21:38 ` Simon Marchi
2026-01-09 19:24 ` [PATCH 1/3] gdb/coffread: remove unnecessary forward declarations Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260109191441.486109-2-simon.marchi@efficios.com \
--to=simon.marchi@efficios.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox