This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
We have noted cases (especially on our Tru64 5.1 installations) in which an executable contains an SBSS section, but no BSS section. This results in the messages gdb-internal-error: Section index is uninitialized An internal GDB error was detected. This may make make further debugging unreliable. Continue this debugging session? (y or n) etc. I propose the following fix, but I'm not sure I understand all the implications. Comments? Paul Hilfinger Ada Core Technologies 2001-02-17 Paul N. Hilfinger <hilfingr@otisco.mckusick.com> * symfile.c (default_symfile_offsets): Allow for case of files containing an SBSS section without a BSS section. Index: gdb/symfile.c =================================================================== RCS file: /cvs/src/src/gdb/symfile.c,v retrieving revision 1.25 diff -c -3 -p -r1.25 symfile.c *** symfile.c 2001/01/31 01:24:02 1.25 --- symfile.c 2001/02/18 00:46:58 *************** default_symfile_offsets (struct objfile *** 530,535 **** --- 530,537 ---- objfile->sect_index_data = sect->index; sect = bfd_get_section_by_name (objfile->obfd, ".bss"); + if (!sect) + sect = bfd_get_section_by_name (objfile->obfd, ".sbss"); if (sect) objfile->sect_index_bss = sect->index;
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |