aboutsummaryrefslogtreecommitdiff
path: root/gdb/dbxread.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-05-03 16:36:16 -0600
committerTom Tromey <tom@tromey.com>2018-07-26 09:18:28 -0600
commit08994e1ddcc8e5e1e003602409662ae799a1ff30 (patch)
treeb8a94c8c7d7c02c0e60f1c36db2ce05c67ac1b38 /gdb/dbxread.c
parent63b4ecf76fec65c6853ea01ffab31642533801e9 (diff)
downloadgdb-08994e1ddcc8e5e1e003602409662ae799a1ff30.zip
gdb-08994e1ddcc8e5e1e003602409662ae799a1ff30.tar.gz
gdb-08994e1ddcc8e5e1e003602409662ae799a1ff30.tar.bz2
Remove dead code in end_psymtab
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. gdb/ChangeLog 2018-07-26 Tom Tromey <tromey@redhat.com> * dbxread.c (end_psymtab): Remove dead code.
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r--gdb/dbxread.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index d8864f3..fe9e842 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -2051,13 +2051,7 @@ dbx_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;
}
}