2005-12-08 Randolph Chung <tausq@debian.org>
authorRandolph Chung <tausq@debian.org>
Thu, 8 Dec 2005 00:17:33 +0000 (00:17 +0000)
committerRandolph Chung <tausq@debian.org>
Thu, 8 Dec 2005 00:17:33 +0000 (00:17 +0000)
* somread.c (som_symfile_offsets): Iterate through number of sections
in addrs instead of objfile.

gdb/ChangeLog
gdb/somread.c

index 7f5d7e7c624355c55e8dd73117632635b51aacdd..01538d0057d79b607e3bd04f35cb4f4524202bba 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-08  Randolph Chung  <tausq@debian.org>
+
+       * somread.c (som_symfile_offsets): Iterate through number of sections
+       in addrs instead of objfile.
+
 2005-12-07  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * valops.c (value_struct_elt): Clarify error message.
index 50c1f84bab429e1efcb8835ec389ad0f5dde802f..813c7a833ae257e9a8d95ff1c2fa6fe846b7ce5c 100644 (file)
@@ -442,7 +442,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 < objfile->num_sections && addrs->other[i].name; i++)
+      for (i = 0; i < addrs->num_sections && addrs->other[i].name; i++)
        if (strcmp (addrs->other[i].name, ".text") == 0)
          break;
       text_addr = addrs->other[i].addr;