[RFA,v2,22/23] Remove record_line_ftype

Message ID 20180720042747.18473-23-tom@tromey.com
State New, archived
Headers

Commit Message

Tom Tromey July 20, 2018, 4:27 a.m. UTC
  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-07-19  Tom Tromey  <tom@tromey.com>

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

Patch

diff --git a/gdb/buildsym-legacy.h b/gdb/buildsym-legacy.h
index aaa9152c4eb..ed825b4b74d 100644
--- a/gdb/buildsym-legacy.h
+++ b/gdb/buildsym-legacy.h
@@ -79,7 +79,7 @@  extern struct context_stack *push_context (int desc, CORE_ADDR valu);
 
 extern struct context_stack pop_context ();
 
-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,
diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index 36b3e99dc56..141adfdebe4 100644
--- a/gdb/buildsym.h
+++ b/gdb/buildsym.h
@@ -396,10 +396,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);
-
 
 
 extern void add_symbol_to_list (struct symbol *symbol,