diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-08-07 15:16:15 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-08-07 15:16:15 +0000 |
commit | 90de6394c32139cb88650b15d0570d54e1246e96 (patch) | |
tree | ca4954ec8dd44a04e7ffe35e723cd7d1aa64f558 /gdb/objfiles.h | |
parent | 62504dc330152a23dd4a49e063faea3605008c28 (diff) | |
download | gdb-90de6394c32139cb88650b15d0570d54e1246e96.tar.gz |
2000-08-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* objfiles.h (SECT_OFF_BSS): Don't detect invalid sect_index_bss
here, let the users of the macro do it.
* symtab.h (ANOFFSET): Detect here if the section index is not
initialized.
* xcoffread.c (find_targ_sec): Don't treat .bss as special,
because some objfiles may not have that section at all.
* coffread.c (cs_to_section): Ditto.
* elfread.c (elf_symtab_read): Detect an uninitialized index
value.
(elfstab_offset_sections): The macro ANOFFSET cannot be used as an
lvalue anymore.
* remote.c (get_offsets, remote_cisco_objfile_relocate): Don't use
ANOFFSET as an lvalue.
* objfiles.c (objfile_relocate, objfile_relocate): Don't use
ANOFFSET as an lvalue.
* symfile.c (default_symfile_offsets): Don't use ANOFFSET as an
lvalue.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 86b77a5b303..90a17403df2 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -597,8 +597,9 @@ extern int is_in_import_list (char *, struct objfile *); ((objfile->sect_index_text == -1) ? \ (internal_error ("sect_index_text not initialized"), -1) : objfile->sect_index_text) -#define SECT_OFF_BSS(objfile) \ - ((objfile->sect_index_bss == -1) ? \ - (internal_error ("sect_index_bss not initialized"), -1) : objfile->sect_index_bss) +/* Sometimes the .bss section is missing from the objfile, so we don't + want to die here. Let the users of SECT_OFF_BSS deal with an + uninitialized section index. */ +#define SECT_OFF_BSS(objfile) (objfile)->sect_index_bss #endif /* !defined (OBJFILES_H) */ |