aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2002-04-22 10:19:04 +0000
committerJoel Brobecker <brobecker@gnat.com>2002-04-22 10:19:04 +0000
commite2f6d8e5e4989f5b1d93ec36896878d070baacff (patch)
tree2858969f47d359d41269c56b50305adb31fa285c /gdb/symfile.h
parent51eb8b084662694622b3d9b8b043b41176de132b (diff)
downloadgdb-e2f6d8e5e4989f5b1d93ec36896878d070baacff.zip
gdb-e2f6d8e5e4989f5b1d93ec36896878d070baacff.tar.gz
gdb-e2f6d8e5e4989f5b1d93ec36896878d070baacff.tar.bz2
* symfile.h (get_section_index): Define.
* 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.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r--gdb/symfile.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h
index 9ab8068..39eb308 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -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,