aboutsummaryrefslogtreecommitdiff
path: root/gdb/somread.c
diff options
context:
space:
mode:
authorRandolph Chung <tausq@debian.org>2005-12-08 00:17:33 +0000
committerRandolph Chung <tausq@debian.org>2005-12-08 00:17:33 +0000
commit8d4989491334f0b8fe290c618456f06a850ad417 (patch)
tree34eca05e244da90665de5f74475a6b27cf9db043 /gdb/somread.c
parentbd4c52284857c40cf2358db8a8a5b085eed255a5 (diff)
downloadgdb-8d4989491334f0b8fe290c618456f06a850ad417.zip
gdb-8d4989491334f0b8fe290c618456f06a850ad417.tar.gz
gdb-8d4989491334f0b8fe290c618456f06a850ad417.tar.bz2
2005-12-08 Randolph Chung <tausq@debian.org>
* somread.c (som_symfile_offsets): Iterate through number of sections in addrs instead of objfile.
Diffstat (limited to 'gdb/somread.c')
-rw-r--r--gdb/somread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/somread.c b/gdb/somread.c
index 50c1f84..813c7a8 100644
--- a/gdb/somread.c
+++ b/gdb/somread.c
@@ -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;