From 64176fa3bbc6e1bba7fabb2afaef1b991523b599 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Wed, 9 Jul 2003 18:50:12 +0000 Subject: * somread.c (som_symfile_offsets): Fix compilation error. --- gdb/somread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/somread.c') 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; -- cgit v1.1