X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fgdb-stabs.h;h=abe2d3365b60cb5aa7ae15d2af114ccf357762fd;hb=54c7009d04fc3da51b50cfbefe5f5894db2cad32;hp=92301f14123f8e3d6a621f9f13cf37f22e72a82e;hpb=72ec28b8afa357cdde70c612b4e0e9f37a34f8e4;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdb-stabs.h b/gdb/gdb-stabs.h index 92301f1412..abe2d3365b 100644 --- a/gdb/gdb-stabs.h +++ b/gdb/gdb-stabs.h @@ -1,5 +1,6 @@ /* Definitions for symbol-reading containing "stabs", for GDB. - Copyright 1992 Free Software Foundation, Inc. + Copyright 1992, 1993, 1995, 1996, 1997, 1999, 2000 + Free Software Foundation, Inc. Contributed by Cygnus Support. Written by John Gilmore. This file is part of GDB. @@ -28,16 +29,7 @@ #if !defined (GDBSTABS_H) #define GDBSTABS_H -/* Offsets in the psymtab's section_offsets array for various kinds of - stabs symbols. Every psymtab built from stabs will have these offsets - filled in by these guidelines, so that when actually reading symbols, the - proper offset can simply be selected and added to the symbol value. */ - -#define SECT_OFF_TEXT 0 -#define SECT_OFF_DATA 1 -#define SECT_OFF_BSS 2 -#define SECT_OFF_RODATA 3 -#define SECT_OFF_MAX 16 /* Count of possible values */ +#define SECT_OFF_MAX 64 /* Count of possible values */ /* The stab_section_info chain remembers info from the ELF symbol table, while psymtabs are being built for the other symbol tables in the @@ -78,6 +70,9 @@ struct dbx_symfile_info asection *text_section; asection *data_section; asection *bss_section; + + /* Pointer to the separate ".stab" section, if there is one. */ + asection *stab_section; }; #define DBX_SYMFILE_INFO(o) ((o)->sym_stab_info) @@ -91,5 +86,6 @@ struct dbx_symfile_info #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) +#define DBX_STAB_SECTION(o) (DBX_SYMFILE_INFO(o)->stab_section) #endif /* GDBSTABS_H */