2000-08-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
[deliverable/binutils-gdb.git] / gdb / symtab.h
index 101759f22def80b001d260549585012fd5d08742..55db0f82a9d486086e058bf9a0798b6b9dea789a 100644 (file)
@@ -829,7 +829,9 @@ struct section_offsets
     CORE_ADDR offsets[1];      /* As many as needed. */
   };
 
-#define        ANOFFSET(secoff, whichone)      (secoff->offsets[whichone])
+#define        ANOFFSET(secoff, whichone) \
+   ((whichone == -1) ? \
+    (internal_error ("Section index is uninitialized"), -1) : secoff->offsets[whichone])
 
 /* The maximum possible size of a section_offsets table.  */
 
This page took 0.03115 seconds and 4 git commands to generate.