From 5c4c8a591172c0f427f3bf118f5beaaa0b2b7c39 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 17 Oct 2013 15:41:46 +0000 Subject: [PATCH] remove unused field from struct elfinfo I noticed that one field in elfread.c:struct elfinfo is unused. This patch removes it. * elfread.c (struct elfinfo) : Remove. (elf_locate_sections): Update. --- gdb/ChangeLog | 5 +++++ gdb/elfread.c | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4b7e028..adf5dcc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-10-17 Tom Tromey + + * elfread.c (struct elfinfo) : Remove. + (elf_locate_sections): Update. + 2013-10-17 Yao Qi * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h. 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; -- 2.7.4