Index: somread.c =================================================================== RCS file: /cvs/src/src/gdb/somread.c,v retrieving revision 1.19 diff -c -3 -p -r1.19 somread.c *** somread.c 6 Jun 2003 23:32:59 -0000 1.19 --- somread.c 9 Jul 2003 17:17:44 -0000 *************** som_symfile_offsets (struct objfile *obj *** 453,459 **** /* Note: Here is OK to compare with ".text" because this is the name that gdb itself gives to that section, not the SOM name. */ ! for (i = 0; i < SECT_OFF_MAX && addrs->other[i].name; i++) if (strcmp (addrs->other[i].name, ".text") == 0) break; text_addr = addrs->other[i].addr; --- 453,459 ---- /* Note: Here is OK to compare with ".text" because this is the name that gdb itself gives to that section, not the SOM name. */ ! for (i = 0; i < objfile->num_sections && addrs->other[i].name; i++) if (strcmp (addrs->other[i].name, ".text") == 0) break; text_addr = addrs->other[i].addr;