diff options
author | Fred Fish <fnf@specifix.com> | 2005-08-07 14:47:02 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 2005-08-07 14:47:02 +0000 |
commit | a29b7e88f24ade51957b1817894cb34a66388964 (patch) | |
tree | b407322f1b5215f188d8ac2a6fe20f58e037c29d /bfd/dwarf2.c | |
parent | 47837f8ec2dff03960623af933b6f80bc3e5e2a9 (diff) | |
download | gdb-a29b7e88f24ade51957b1817894cb34a66388964.zip gdb-a29b7e88f24ade51957b1817894cb34a66388964.tar.gz gdb-a29b7e88f24ade51957b1817894cb34a66388964.tar.bz2 |
Reviewed and approved by Nick Clifton <nickc@redhat.com>
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.
Diffstat (limited to 'bfd/dwarf2.c')
-rw-r--r-- | bfd/dwarf2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 40883dd..2635a57 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; |