This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFC 1/7] remove dead code in end_psymtab
- 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, 20 Feb 2014 14:31:58 -0700
- Subject: [RFC 1/7] remove dead code in end_psymtab
- Authentication-results: sourceware.org; auth=none
- References: <1392931924-31095-1-git-send-email-tromey at redhat dot com>
I noticed that there is a bit of dead code in end_psymtab.
This deletes it.
Normally I would investigate a fix for the code. However, considering
that the code has been this way a long time (since the first import to
sourceware) and considering that dbxread.c is not as important any
more, I think it's safe to just consider that there's no bug.
2014-02-20 Tom Tromey <tromey@redhat.com>
* dbxread.c (end_psymtab): Remove dead code.
---
gdb/ChangeLog | 4 ++++
gdb/dbxread.c | 8 +-------
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 3290c67..ceb593a 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -2289,13 +2289,7 @@ end_psymtab (struct objfile *objfile, struct partial_symtab *pst,
ALL_OBJFILE_PSYMTABS (objfile, p1)
{
if (p1->texthigh == 0 && p1->textlow != 0 && p1 != pst)
- {
- p1->texthigh = pst->textlow;
- /* If this file has only data, then make textlow match
- texthigh. */
- if (p1->textlow == 0)
- p1->textlow = p1->texthigh;
- }
+ p1->texthigh = pst->textlow;
}
}
--
1.8.1.4