This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] remove unused field from struct elfinfo
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tromey at redhat dot com>
- Date: Thu, 17 Oct 2013 09:40:48 -0600
- Subject: [PATCH] remove unused field from struct elfinfo
- Authentication-results: sourceware.org; auth=none
I noticed that one field in elfread.c:struct elfinfo is unused.
This patch removes it.
* elfread.c (struct elfinfo) <stabindexsect>: Remove.
(elf_locate_sections): Update.
---
gdb/elfread.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 0095ad9..47602ef 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -60,7 +60,6 @@ static const struct sym_fns elf_sym_fns_lazy_psyms;
struct elfinfo
{
asection *stabsect; /* Section pointer for .stab section */
- asection *stabindexsect; /* Section pointer for .stab.index section */
asection *mdebugsect; /* Section pointer for .mdebug section */
};
@@ -186,10 +185,6 @@ elf_locate_sections (bfd *ignore_abfd, asection *sectp, void *eip)
{
ei->stabsect = sectp;
}
- else if (strcmp (sectp->name, ".stab.index") == 0)
- {
- ei->stabindexsect = sectp;
- }
else if (strcmp (sectp->name, ".mdebug") == 0)
{
ei->mdebugsect = sectp;
--
1.8.1.4