mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 02:24:46 +08:00
* somread.c (som_symfile_offsets): Fix compilation error.
This commit is contained in:
parent
96a4ee76e5
commit
64176fa3bb
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user