From 8d4989491334f0b8fe290c618456f06a850ad417 Mon Sep 17 00:00:00 2001 From: Randolph Chung Date: Thu, 8 Dec 2005 00:17:33 +0000 Subject: [PATCH] 2005-12-08 Randolph Chung * somread.c (som_symfile_offsets): Iterate through number of sections in addrs instead of objfile. --- gdb/ChangeLog | 5 +++++ gdb/somread.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7f5d7e7c62..01538d0057 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2005-12-08 Randolph Chung + + * somread.c (som_symfile_offsets): Iterate through number of sections + in addrs instead of objfile. + 2005-12-07 Daniel Jacobowitz * valops.c (value_struct_elt): Clarify error message. diff --git a/gdb/somread.c b/gdb/somread.c index 50c1f84bab..813c7a833a 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;