From: Fred Fish Date: Sun, 7 Aug 2005 14:47:02 +0000 (+0000) Subject: Reviewed and approved by Nick Clifton X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a29b7e88f24ade51957b1817894cb34a66388964;p=binutils-gdb.git Reviewed and approved by Nick Clifton 2005-08-05 Fred Fish * dwarf2.c (read_rangelist): Use addr_size instead of offset_size to determine how many bytes to read from each rangelist entry. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ced5b40767d..2b797d4e4b3 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-08-05 Fred Fish + + * dwarf2.c (read_rangelist): Use addr_size instead of offset_size + to determine how many bytes to read from each rangelist entry. + 2005-08-05 H.J. Lu * bfd.c (bfd_hide_symbol): New. diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 40883dd09ed..2635a5739ef 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -1606,7 +1606,7 @@ read_rangelist (struct comp_unit *unit, struct arange *arange, bfd_uint64_t offs bfd_vma low_pc; bfd_vma high_pc; - if (unit->offset_size == 4) + if (unit->addr_size == 4) { low_pc = read_4_bytes (unit->abfd, ranges_ptr); ranges_ptr += 4;