diff options
author | Nick Clifton <nickc@redhat.com> | 2002-11-07 14:36:31 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-11-07 14:36:31 +0000 |
commit | ec4530b540c3e8ac595d1c65744ff8e6c8695c96 (patch) | |
tree | 162b8c4541dccc13aabea17714cb57b7ff05e70a /bfd/dwarf2.c | |
parent | bde78a07b9f30f173df10eb779ce51284ee275c9 (diff) | |
download | gdb-ec4530b540c3e8ac595d1c65744ff8e6c8695c96.zip gdb-ec4530b540c3e8ac595d1c65744ff8e6c8695c96.tar.gz gdb-ec4530b540c3e8ac595d1c65744ff8e6c8695c96.tar.bz2 |
Use bfd_simple_get_relocated_section_contents() instead of bfd_get_section_contents().
Diffstat (limited to 'bfd/dwarf2.c')
-rw-r--r-- | bfd/dwarf2.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 0639826..1d1e343 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -389,8 +389,8 @@ read_indirect_string (unit, buf, bytes_read_ptr) if (! stash->dwarf_abbrev_buffer) return NULL; - if (! bfd_get_section_contents (abfd, msec, stash->dwarf_str_buffer, - (bfd_vma) 0, msec->_raw_size)) + if (! bfd_simple_get_relocated_section_contents + (abfd, msec, stash->dwarf_str_buffer)) return NULL; } @@ -550,8 +550,8 @@ read_abbrevs (abfd, offset, stash) if (! stash->dwarf_abbrev_buffer) return 0; - if (! bfd_get_section_contents (abfd, msec, stash->dwarf_abbrev_buffer, - (bfd_vma) 0, msec->_raw_size)) + if (! bfd_simple_get_relocated_section_contents + (abfd, msec, stash->dwarf_abbrev_buffer)) return 0; } @@ -1023,8 +1023,8 @@ decode_line_info (unit, stash) if (! stash->dwarf_line_buffer) return 0; - if (! bfd_get_section_contents (abfd, msec, stash->dwarf_line_buffer, - (bfd_vma) 0, msec->_raw_size)) + if (! bfd_simple_get_relocated_section_contents + (abfd, msec, stash->dwarf_line_buffer)) return 0; /* FIXME: We ought to apply the relocs against this section before @@ -1939,8 +1939,8 @@ _bfd_dwarf2_find_nearest_line (abfd, section, symbols, offset, start = stash->info_ptr_end - stash->info_ptr; - if (! bfd_get_section_contents (abfd, msec, stash->info_ptr + start, - (bfd_vma) 0, size)) + if (! bfd_simple_get_relocated_section_contents + (abfd, msec, stash->info_ptr + start)) continue; stash->info_ptr_end = stash->info_ptr + start + size; |