Move last_source_start_addr to buildsym_compunit
[deliverable/binutils-gdb.git] / gdb / buildsym.h
index 536d50a58eb53c5139ced1badf938c88edcfe8a0..61ffc0fd89542a599285c6a53e998f46bcfb9d9c 100644 (file)
@@ -49,12 +49,6 @@ struct dynamic_prop;
 #define HASHSIZE 127           /* Size of things hashed via
                                   hashname().  */
 
-/* Core address of start of text of current source file.  This too
-   comes from the N_SO symbol.  For Dwarf it typically comes from the
-   DW_AT_low_pc attribute of a DW_TAG_compile_unit DIE.  */
-
-EXTERN CORE_ADDR last_source_start_addr;
-
 /* The list of sub-source-files within the current individual
    compilation.  Each file gets its own symtab with its own linetable
    and associated info, but they all share one blockvector.  */
@@ -310,6 +304,16 @@ extern struct compunit_symtab *buildsym_compunit_symtab (void);
 
 extern struct macro_table *get_macro_table (void);
 
+/* Set the last source start address.  Can only be used between
+   start_symtab and end_symtab* calls.  */
+
+extern void set_last_source_start_addr (CORE_ADDR addr);
+
+/* Get the last source start address.  Can only be used between
+   start_symtab and end_symtab* calls.  */
+
+extern CORE_ADDR get_last_source_start_addr ();
+
 #undef EXTERN
 
 #endif /* defined (BUILDSYM_H) */
This page took 0.029226 seconds and 4 git commands to generate.