From f779e99f2ab25060486dc11ab2fcddba0cacf918 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 17 Jul 1995 17:33:37 +0000 Subject: * stabsread.h (struct stab_section_list): Define. (coffstab_build_psymtabs): Remove staboff and stabsize parameters. Add textaddr, textsize, and stabs parameters. * gdb-stabs.h (struct dbx_symfile_info): Remove text_sect field. Add text_addr and text_size fields. (DBX_TEXT_SECT): Don't define. (DBX_TEXT_ADDR, DBX_TEXT_SIZE): Define. * coffread.c: Include . (struct coff_symfile_info): Remove stabsect and stabindexsect fields. Add textaddr, textsize, and stabsects fields. (coff_locate_sections): Record the address of the .text section, and total the sizes of all sections with names beginning with ".text". Don't bother to record a .stab.index section (COFF doesn't use them). Make a linked list of all sections with names beginning with ".stab". (coff_symfile_read): Adjust call to coffstab_build_psymtabs for new parameters. * dbxread.c (dbx_symfile_read): Use DBX_TEXT_ADDR and DBX_TEXT_SIZE, rather than getting both from DBX_TEXT_SECT. (dbx_symfile_init): Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not DBX_TEXT_SECT. (elfstab_build_psymtabs): Likewise. (stabsect_build_psymtabs): Likewise. (symbuf_sections, symbuf_left, symbuf_read): New static variables. (fill_symbuf): If symbuf_sections is not NULL, read symbols from multiple sections. (coffstab_build_psymtabs): Remove staboffset and stabsize parameters. Add textaddr, textsize, and stabsects parameters. Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not DBX_TEXT_SECT. Handle multiple stabs sections. * os9kread.c (os9k_symfile_read): Use DBX_TEXT_ADDR and DBX_TEXT_SIZE, rather than getting both from DBX_TEXT_SECT. (os9k_symfile_init): Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not DBX_TEXT_SECT. PR 7241. --- gdb/gdb-stabs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gdb/gdb-stabs.h') diff --git a/gdb/gdb-stabs.h b/gdb/gdb-stabs.h index c1e0253..21611cb 100644 --- a/gdb/gdb-stabs.h +++ b/gdb/gdb-stabs.h @@ -55,7 +55,8 @@ struct stab_section_info { field of the objfile struct. */ struct dbx_symfile_info { - asection *text_sect; /* Text section accessor */ + CORE_ADDR text_addr; /* Start of text section */ + int text_size; /* Size of text section */ int symcount; /* How many symbols are there in the file */ char *stringtab; /* The actual string table */ int stringtab_size; /* Its size */ @@ -66,7 +67,8 @@ struct dbx_symfile_info { }; #define DBX_SYMFILE_INFO(o) ((struct dbx_symfile_info *)((o)->sym_stab_info)) -#define DBX_TEXT_SECT(o) (DBX_SYMFILE_INFO(o)->text_sect) +#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) #define DBX_STRINGTAB(o) (DBX_SYMFILE_INFO(o)->stringtab) #define DBX_STRINGTAB_SIZE(o) (DBX_SYMFILE_INFO(o)->stringtab_size) -- cgit v1.1