summaryrefslogtreecommitdiff
path: root/libdw/dwarf_diecu.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-01-18 19:59:08 +0000
committerUlrich Drepper <drepper@redhat.com>2008-01-18 19:59:08 +0000
commit35f08c4d52d0ffd9f8aa50f47b84de5603842b1f (patch)
tree7def9d6d4ef3ffea169252d44325cb039294129d /libdw/dwarf_diecu.c
parent4173bd8d5dd43413ba0635e2a74bc57a9478fb13 (diff)
downloadelfutils-35f08c4d52d0ffd9f8aa50f47b84de5603842b1f.tar.gz
propagate from branch 'com.redhat.elfutils.nickc.pending' (head 28d6423325f0cc14a133eb6b92a8c3604e437ba6)
to branch 'com.redhat.elfutils' (head 6ef48518ed8497626058574c787852bd939d46ee)
Diffstat (limited to 'libdw/dwarf_diecu.c')
-rw-r--r--libdw/dwarf_diecu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdw/dwarf_diecu.c b/libdw/dwarf_diecu.c
index 0724ee06..963c7d06 100644
--- a/libdw/dwarf_diecu.c
+++ b/libdw/dwarf_diecu.c
@@ -70,7 +70,7 @@ dwarf_diecu (die, result, address_sizep, offset_sizep)
memset (result, '\0', sizeof (Dwarf_Die));
result->addr = ((char *) die->cu->dbg->sectiondata[IDX_debug_info]->d_buf
- + die->cu->start + 3 * die->cu->offset_size - 4 + 3);
+ + DIE_OFFSET_FROM_CU_OFFSET (die->cu->start, die->cu->offset_size));
result->cu = die->cu;
if (address_sizep != NULL)