aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2003-07-09 18:50:12 +0000
committerJoel Brobecker <brobecker@gnat.com>2003-07-09 18:50:12 +0000
commit64176fa3bbc6e1bba7fabb2afaef1b991523b599 (patch)
tree881dfd6021b4c45a6a082a7fad7c58f9310031ef /gdb
parent96a4ee76e5e49942a5f75f2a97103eb3d1a97122 (diff)
downloadgdb-64176fa3bbc6e1bba7fabb2afaef1b991523b599.zip
gdb-64176fa3bbc6e1bba7fabb2afaef1b991523b599.tar.gz
gdb-64176fa3bbc6e1bba7fabb2afaef1b991523b599.tar.bz2
* somread.c (som_symfile_offsets): Fix compilation error.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/somread.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 466242d..e4f5445 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2003-07-09 Joel Brobecker <brobecker@gnat.com>
+
+ * somread.c (som_symfile_offsets): Fix compilation error.
+
2003-07-09 Andrew Cagney <cagney@redhat.com>
* regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
diff --git a/gdb/somread.c b/gdb/somread.c
index cb7b048..e3df6e1 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;