summaryrefslogtreecommitdiff
path: root/gdb/buildsym.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2014-08-22 16:20:05 -0700
committerDoug Evans <dje@google.com>2014-08-22 16:20:05 -0700
commit252a6764dd7ce810c9ecea3786d04f8f05c2d566 (patch)
tree61412d50e848718cbb8967e74cc55ccb7ec4f4ff /gdb/buildsym.h
parent49b9c17cf445af9184508824a703099c5997f7d0 (diff)
downloadbinutils-gdb-252a6764dd7ce810c9ecea3786d04f8f05c2d566.tar.gz
Create a typedef for record_line: record_line_ftype.
gdb/ChangeLog: * buildsym.h (record_line_ftype): New typedef. (record_line): Use it. * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions. (dwarf_decode_lines_1): Call them.
Diffstat (limited to 'gdb/buildsym.h')
-rw-r--r--gdb/buildsym.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index 57467c7ed46..8ce01b2b197 100644
--- a/gdb/buildsym.h
+++ b/gdb/buildsym.h
@@ -171,6 +171,10 @@ EXTERN int context_stack_size;
EXTERN int within_function;
+/* The type of the record_line function. */
+typedef void (record_line_ftype) (struct subfile *subfile, int line,
+ CORE_ADDR pc);
+
#define next_symbol_text(objfile) (*next_symbol_text_func)(objfile)
@@ -236,7 +240,7 @@ extern struct context_stack *push_context (int desc, CORE_ADDR valu);
extern struct context_stack *pop_context (void);
-extern void record_line (struct subfile *subfile, int line, CORE_ADDR pc);
+extern record_line_ftype record_line;
extern void start_symtab (const char *name, const char *dirname,
CORE_ADDR start_addr);