Reviewed and approved by Nick Clifton <nickc@redhat.com>
authorFred Fish <fnf@specifix.com>
Sun, 7 Aug 2005 14:47:02 +0000 (14:47 +0000)
committerFred Fish <fnf@specifix.com>
Sun, 7 Aug 2005 14:47:02 +0000 (14:47 +0000)
2005-08-05  Fred Fish  <fnf@specifix.com>
* dwarf2.c (read_rangelist): Use addr_size instead of offset_size
to determine how many bytes to read from each rangelist entry.

bfd/ChangeLog
bfd/dwarf2.c

index ced5b40767da512fc1a4dd088a3c77d69ed2a1c9..2b797d4e4b37692aef61947c1f64b429d22f26db 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-05  Fred Fish  <fnf@specifix.com>
+
+       * 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  <hongjiu.lu@intel.com>
 
        * bfd.c (bfd_hide_symbol): New.
index 40883dd09ed138ecfa5b0443b1a63361b479053f..2635a5739ef9f18fbb7e4b5c15037bc71df9da02 100644 (file)
@@ -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;