[RFA 42/42] Remove record_line_ftype

Tom Tromey
2018-05-23T06:15:59Z

The record_line_ftype typedef was only used in the DWARF reader, and
we removed those uses a few patches ago. So, remove the typedef.

gdb/ChangeLog
2018-05-22 Tom Tromey <tom@tromey.com>

* legacy-buildsym.h (record_line): Don't use record_line_ftype.
* buildsym.h (record_line_ftype): Remove typedef.
---
gdb/ChangeLog | 5 +++++
gdb/buildsym.h | 4 ----
gdb/legacy-buildsym.h | 2 +-
3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index 05b80f5cb7..d90faff903 100644
--- a/gdb/buildsym.h
+++ b/gdb/buildsym.h
@@ -399,10 +399,6 @@ private:
struct pending *m_local_symbols = nullptr;
};

-/* The type of the record_line function. */
-typedef void (record_line_ftype) (struct subfile *subfile, int line,
- CORE_ADDR pc);
-
\f

extern void add_symbol_to_list (struct symbol *symbol,
diff --git a/gdb/legacy-buildsym.h b/gdb/legacy-buildsym.h
index 55f9d14f7e..43d3e6c09c 100644
--- a/gdb/legacy-buildsym.h
+++ b/gdb/legacy-buildsym.h
@@ -79,7 +79,7 @@ extern struct context_stack *push_context (int desc, CORE_ADDR valu);

extern struct context_stack *pop_context (void);

-extern record_line_ftype record_line;
+extern void record_line (struct subfile *subfile, int line, CORE_ADDR pc);

extern struct compunit_symtab *start_symtab (struct objfile *objfile,
const char *name,
--
2.13.6