]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* somread.c (som_symfile_offsets): Fix compilation error.
authorJoel Brobecker <brobecker@gnat.com>
Wed, 9 Jul 2003 18:51:42 +0000 (18:51 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 9 Jul 2003 18:51:42 +0000 (18:51 +0000)
gdb/ChangeLog
gdb/somread.c

index f51d150b02cc7da42f58f7cb6fb57a9b7d20b0c2..1cb6c79e1e306ec93dd4064e0ed34c44862cab6d 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-09  Joel Brobecker  <brobecker@gnat.com>      
+
+       * somread.c (som_symfile_offsets): Fix compilation error.   
+
 2003-07-08  Andrew Cagney  <cagney@redhat.com>
 
        * Makefile.in: Make dependency section headers consistent.
index cb7b048eafdac9c94b7bf4ede365ce9d5ee60147..e3df6e167a1dfa5c95ab7cb9201264492242ca12 100644 (file)
@@ -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;