From mboxrd@z Thu Jan 1 00:00:00 1970 From: Elena Zannoni To: Andrew Cagney Cc: Joel Brobecker , gdb-patches@sources.redhat.com Subject: Re: [RFA] Fix uninitialized section index internal error Date: Wed, 27 Jun 2001 21:52:00 -0000 Message-id: <15162.47148.785943.680570@kwikemart.cygnus.com> References: <20010607150845.C24983@act-europe.fr> <3B3AAD1B.7080902@cygnus.com> X-SW-Source: 2001-06/msg00448.html Actually, there have been a few more exchanges on this patch. (there were 2 submissions). See other discussion, which also needs to be resolved. Will do now. http://sources.redhat.com/ml/gdb-patches/2001-06/msg00284.html Elena Andrew Cagney writes: > Just FYI, I'm cleaning out my MBOX. I'm going to assume this patch is > dead. If my memory is correct the symtab people are trying to eliminate > knwledge about magic ``.bss'' sections, not clone it :-) > > Andrew > > > Index: gdb/symfile.c > > =================================================================== > > RCS file: /cvs/src/src/gdb/symfile.c,v > > retrieving revision 1.31 > > diff -c -3 -p -r1.31 symfile.c > > *** symfile.c 2001/04/05 02:02:13 1.31 > > --- symfile.c 2001/05/10 19:41:39 > > *************** default_symfile_offsets (struct objfile > > *** 529,534 **** > > --- 529,536 ---- > > 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; > > > > > >