aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-10-17 15:41:46 +0000
committerTom Tromey <tromey@redhat.com>2013-10-17 15:41:46 +0000
commit5c4c8a591172c0f427f3bf118f5beaaa0b2b7c39 (patch)
treea95d18928bdb213ea51ad11dbc881f0290ba1299 /gdb/elfread.c
parentc4124bf18d477151427aca528603b54474120782 (diff)
downloadgdb-5c4c8a591172c0f427f3bf118f5beaaa0b2b7c39.zip
gdb-5c4c8a591172c0f427f3bf118f5beaaa0b2b7c39.tar.gz
gdb-5c4c8a591172c0f427f3bf118f5beaaa0b2b7c39.tar.bz2
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) <stabindexsect>: Remove. (elf_locate_sections): Update.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r--gdb/elfread.c5
1 files changed, 0 insertions, 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;