> * gdb.texinfo (hbreak, watch): Fix typo, "date" -> "data".
[deliverable/binutils-gdb.git] / gdb / gdb-stabs.h
index fabe17c2fe8b95ee891ed3e0e719fa6eb9d464bd..1ad782abdcae30aa055f0c1b9c5c2335dfc3a39b 100644 (file)
@@ -69,9 +69,15 @@ struct dbx_symfile_info {
   struct header_file *header_files;
   int n_header_files;
   int n_allocated_header_files;
+
+  /* Pointers to BFD sections.  These are used to speed up the building of
+     minimal symbols.  */
+  asection *text_section;
+  asection *data_section;
+  asection *bss_section;
 };
 
-#define DBX_SYMFILE_INFO(o)    ((struct dbx_symfile_info *)((o)->sym_stab_info))
+#define DBX_SYMFILE_INFO(o)    ((o)->sym_stab_info)
 #define DBX_TEXT_ADDR(o)       (DBX_SYMFILE_INFO(o)->text_addr)
 #define DBX_TEXT_SIZE(o)       (DBX_SYMFILE_INFO(o)->text_size)
 #define DBX_SYMCOUNT(o)                (DBX_SYMFILE_INFO(o)->symcount)
@@ -79,5 +85,8 @@ struct dbx_symfile_info {
 #define DBX_STRINGTAB_SIZE(o)  (DBX_SYMFILE_INFO(o)->stringtab_size)
 #define DBX_SYMTAB_OFFSET(o)   (DBX_SYMFILE_INFO(o)->symtab_offset)
 #define DBX_SYMBOL_SIZE(o)     (DBX_SYMFILE_INFO(o)->symbol_size)
+#define DBX_TEXT_SECTION(o)    (DBX_SYMFILE_INFO(o)->text_section)
+#define DBX_DATA_SECTION(o)    (DBX_SYMFILE_INFO(o)->data_section)
+#define DBX_BSS_SECTION(o)     (DBX_SYMFILE_INFO(o)->bss_section)
 
 #endif /* GDBSTABS_H */
This page took 0.024171 seconds and 4 git commands to generate.