From: Joel Brobecker Date: Wed, 9 Jul 2003 18:51:42 +0000 (+0000) Subject: * somread.c (som_symfile_offsets): Fix compilation error. X-Git-Tag: cagney_x86i386-20030821-branchpoint~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38adad417e6e006b89fafaa94478ecb96db8eda5;p=thirdparty%2Fbinutils-gdb.git * somread.c (som_symfile_offsets): Fix compilation error. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f51d150b02c..1cb6c79e1e3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2003-07-09 Joel Brobecker + + * somread.c (som_symfile_offsets): Fix compilation error. + 2003-07-08 Andrew Cagney * Makefile.in: Make dependency section headers consistent. diff --git a/gdb/somread.c b/gdb/somread.c index cb7b048eafd..e3df6e167a1 100644 --- a/gdb/somread.c +++ b/gdb/somread.c @@ -453,7 +453,7 @@ som_symfile_offsets (struct objfile *objfile, struct section_addr_info *addrs) /* 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++) + 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;