This is the mail archive of the gdb@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]
Other format: [Raw text]

Re: GDB 5.1 on Tru64 UNIX 4.0D, 5.0, 5.1



>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));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]