From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Snyder To: gdb@sources.redhat.com, gdb@thewrittenword.com Subject: Re: GDB 5.1 on Tru64 UNIX 4.0D, 5.0, 5.1 Date: Mon, 26 Nov 2001 22:08:00 -0000 Message-ID: References: <20011126104505.A14474@oolong.il.thewrittenword.com> X-SW-Source: 2001-11/msg00275.html Message-ID: <20011126220800.vg2OU9W_IsiOoiyCBZIXPWXRFUuxiAJpC_Xy01O_07U@z> >gdb-internal-error: Section index is uninitialized These hacks seemed to work around the worst of the symbol-reading problems for me. There's still other problems on this platform, though. sss Index: gdb/mdebugread.c =================================================================== RCS file: /cvs/src/src/gdb/mdebugread.c,v retrieving revision 1.16 diff -u -r1.16 mdebugread.c --- mdebugread.c 2001/10/12 23:51:28 1.16 +++ mdebugread.c 2001/11/02 20:03:52 @@ -2424,11 +2424,19 @@ } else if (SC_IS_DATA (ext_in->asym.sc)) { +#if 1 /* sss */ + if (objfile->sect_index_data == -1) + continue; +#endif ms_type = mst_data; svalue += ANOFFSET (objfile->section_offsets, SECT_OFF_DATA (objfile)); } else if (SC_IS_BSS (ext_in->asym.sc)) { +#if 1 /* sss */ + if (objfile->sect_index_bss == -1) + continue; +#endif ms_type = mst_bss; svalue += ANOFFSET (objfile->section_offsets, SECT_OFF_BSS (objfile)); } @@ -2444,6 +2452,10 @@ } else if (SC_IS_DATA (ext_in->asym.sc)) { +#if 1 /* sss */ + if (objfile->sect_index_data == -1) + continue; +#endif ms_type = mst_file_data; svalue += ANOFFSET (objfile->section_offsets, SECT_OFF_DATA (objfile)); } Index: bfd/ecoff.c =================================================================== RCS file: /cvs/src/src/bfd/ecoff.c,v retrieving revision 1.13 diff -u -r1.13 ecoff.c --- ecoff.c 2001/10/10 12:08:28 1.13 +++ ecoff.c 2001/11/27 06:06:03 @@ -565,7 +565,7 @@ UPDATE_RAW_END (cbDnOffset, idnMax, backend->debug_swap.external_dnr_size); UPDATE_RAW_END (cbPdOffset, ipdMax, backend->debug_swap.external_pdr_size); UPDATE_RAW_END (cbSymOffset, isymMax, backend->debug_swap.external_sym_size); - UPDATE_RAW_END (cbOptOffset, ioptMax, backend->debug_swap.external_opt_size); + UPDATE_RAW_END (cbOptOffset, ioptMax, 1/*backend->debug_swap.external_opt_size*/); UPDATE_RAW_END (cbAuxOffset, iauxMax, sizeof (union aux_ext)); UPDATE_RAW_END (cbSsOffset, issMax, sizeof (char)); UPDATE_RAW_END (cbSsExtOffset, issExtMax, sizeof (char));