diff options
author | Alan Modra <amodra@gmail.com> | 2004-06-15 01:04:20 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2004-06-15 01:04:20 +0000 |
commit | 2c500098f2a2ade0966e2ac10e0e714474cfcd92 (patch) | |
tree | 01ec7eb0a460ddbbb53a6dc50caab46edc6f706b /gdb/remote-mips.c | |
parent | 1bf404efc4be7e9fbfff51bbaaacfbff99ae2466 (diff) | |
download | gdb-2c500098f2a2ade0966e2ac10e0e714474cfcd92.zip gdb-2c500098f2a2ade0966e2ac10e0e714474cfcd92.tar.gz gdb-2c500098f2a2ade0966e2ac10e0e714474cfcd92.tar.bz2 |
* dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
bfd_get_section_size_before_reloc or _raw_size.
* dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
* dwarf2read.c (dwarf2_locate_sections): Likewise.
(dwarf2_read_section): Likewise.
* elfread.c (elf_locate_sections): Likewise.
* gcore.c (derive_heap_segment): Likewise.
* mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
* remote-e7000.c (e7000_load): Likewise.
* remote-m32r-sdi.c (m32r_load): Likewise.
* remote-mips.c (mips_load_srec): Likewise.
(pmon_load_fast): Likewise.
* remote.c (compare_sections_command): Likewise.
* symfile.c (add_section_size_callback): Likewise.
(load_section_callback): Likewise.
(pc_in_unmapped_range): Likewise.
(pc_in_mapped_range): Likewise.
(sections_overlap): Likewise.
(list_overlays_command): Likewise.
(simple_overlay_update_1): Likewise.
(simple_overlay_update): Likewise.
* tracepoint.c (remote_set_transparent_ranges): Likewise.
* win32-nat.c (core_section_load_dll_symbols): Likewise.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r-- | gdb/remote-mips.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 24f9378..a011467 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -1,7 +1,7 @@ /* Remote debugging interface for MIPS remote debugging protocol. Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, - 2002 Free Software Foundation, Inc. + 2002, 2003, 2004 Free Software Foundation, Inc. Contributed by Cygnus Support. Written by Ian Lance Taylor <ian@cygnus.com>. @@ -2648,12 +2648,12 @@ mips_load_srec (char *args) /* FIXME! vma too small????? */ printf_filtered ("%s\t: 0x%4lx .. 0x%4lx ", s->name, (long) s->vma, - (long) (s->vma + s->_raw_size)); + (long) (s->vma + bfd_get_section_size (s))); gdb_flush (gdb_stdout); - for (i = 0; i < s->_raw_size; i += numbytes) + for (i = 0; i < bfd_get_section_size (s); i += numbytes) { - numbytes = min (srec_frame, s->_raw_size - i); + numbytes = min (srec_frame, bfd_get_section_size (s) - i); bfd_get_section_contents (abfd, s, buffer, i, numbytes); @@ -3135,11 +3135,11 @@ pmon_load_fast (char *file) for (s = abfd->sections; s && !finished; s = s->next) if (s->flags & SEC_LOAD) /* only deal with loadable sections */ { - bintotal += s->_raw_size; - final = (s->vma + s->_raw_size); + bintotal += bfd_get_section_size (s); + final = (s->vma + bfd_get_section_size (s)); printf_filtered ("%s\t: 0x%4x .. 0x%4x ", s->name, (unsigned int) s->vma, - (unsigned int) (s->vma + s->_raw_size)); + (unsigned int) (s->vma + bfd_get_section_size (s))); gdb_flush (gdb_stdout); /* Output the starting address */ @@ -3160,11 +3160,13 @@ pmon_load_fast (char *file) reclen = 0; - for (i = 0; ((i < s->_raw_size) && !finished); i += binamount) + for (i = 0; + i < bfd_get_section_size (s) && !finished; + i += binamount) { int binptr = 0; - binamount = min (BINCHUNK, s->_raw_size - i); + binamount = min (BINCHUNK, bfd_get_section_size (s) - i); bfd_get_section_contents (abfd, s, binbuf, i, binamount); |