summaryrefslogtreecommitdiffstats
path: root/libdw/dwarf_ranges.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2005-10-28 07:07:19 +0000
committerRoland McGrath <[email protected]>2005-10-28 07:07:19 +0000
commit6724c90d02659f7466b67b357563042e403d154e (patch)
tree9671d9d41baee4b5256feac1f9f49d45aaa95500 /libdw/dwarf_ranges.c
parent07d4f2fc1cb53f170a71bc13617bbdd9cb1c3c60 (diff)
NEWS updates
Diffstat (limited to 'libdw/dwarf_ranges.c')
-rw-r--r--libdw/dwarf_ranges.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libdw/dwarf_ranges.c b/libdw/dwarf_ranges.c
index 546bcac0..5d6710a0 100644
--- a/libdw/dwarf_ranges.c
+++ b/libdw/dwarf_ranges.c
@@ -65,13 +65,7 @@ dwarf_ranges (Dwarf_Die *die, ptrdiff_t offset, Dwarf_Addr *basep,
assert ((Dwarf_Word) offset == start_offset);
/* Fetch the CU's base address. */
- Dwarf_Die cudie =
- {
- .cu = attr->cu,
- .addr = ((char *) attr->cu->dbg->sectiondata[IDX_debug_info]->d_buf
- + attr->cu->start + 3 * attr->cu->offset_size - 4 + 3),
- };
- if (INTUSE(dwarf_lowpc) (&cudie, basep) != 0)
+ if (INTUSE(dwarf_lowpc) (&CUDIE (attr->cu), basep) != 0)
return -1;
}
else if (offset < 0 || (size_t) offset >= d->d_size)