* [FYI] minor cleanup in dbxread.c
@ 2014-02-20 19:16 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2014-02-20 19:16 UTC (permalink / raw)
To: gdb-patches; +Cc: Tom Tromey
I happened to notice that last_o_file_start is write-only in
read_dbx_symtab. This patch removes it. Tested by rebuilding.
2014-02-20 Tom Tromey <tromey@redhat.com>
* dbxread.c (read_dbx_symtab): Remove last_o_file_start.
---
gdb/ChangeLog | 4 ++++
gdb/dbxread.c | 2 --
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index ff56554..0f70277 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -1199,7 +1199,6 @@ read_dbx_symtab (struct objfile *objfile)
char *namestring;
int nsl;
int past_first_source_file = 0;
- CORE_ADDR last_o_file_start = 0;
CORE_ADDR last_function_start = 0;
struct cleanup *back_to;
bfd *abfd;
@@ -1391,7 +1390,6 @@ read_dbx_symtab (struct objfile *objfile)
}
else
past_first_source_file = 1;
- last_o_file_start = nlist.n_value;
}
else
goto record_it;
--
1.8.1.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-20 19:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-20 19:16 [FYI] minor cleanup in dbxread.c Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).