* symfile.h (get_section_index): Define.
authorJoel Brobecker <brobecker@gnat.com>
Mon, 22 Apr 2002 10:19:04 +0000 (10:19 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Mon, 22 Apr 2002 10:19:04 +0000 (10:19 +0000)
* symfile.c (get_section_index): New function.
* mdebugread.c (SC_IS_SBSS): New macro.
(SC_IS_BSS): Return true for the scBss storage class only, as
the scSBss storage class refers to the .sbss section.
(parse_partial_symbols): Discard the symbols which associated
section does not exist.
Make sure to use the .sbss section index for symbols which
storage class is scBss, rather than using the .bss section index.

gdb/symfile.h

index 9ab8068d11286538feafd0aa2a241c8541a8a622..39eb3080f13c9522d31e2f97da660cc29016a211 100644 (file)
@@ -252,6 +252,8 @@ extern void find_lowest_section (bfd *, asection *, PTR);
 
 extern bfd *symfile_bfd_open (char *);
 
+extern int get_section_index (struct objfile *, char *);
+
 /* Utility functions for overlay sections: */
 extern enum overlay_debugging_state {
   ovly_off,