summaryrefslogtreecommitdiff
path: root/bfd/dwarf2.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>2005-08-07 14:47:02 +0000
committerFred Fish <fnf@specifix.com>2005-08-07 14:47:02 +0000
commit54ff665faaebb4d1da46c2ce0eb13c1d048e574c (patch)
tree7a21115f9107a4b16070b858a1125ce92a56a426 /bfd/dwarf2.c
parent933c08caacaaef7ead1356dcfc9d8453c60fb1f7 (diff)
downloadgdb-54ff665faaebb4d1da46c2ce0eb13c1d048e574c.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
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;