summaryrefslogtreecommitdiffstats
path: root/libdw/dwarf_dieoffset.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdw/dwarf_dieoffset.c')
-rw-r--r--libdw/dwarf_dieoffset.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libdw/dwarf_dieoffset.c b/libdw/dwarf_dieoffset.c
index 4d712f7f..ac4a84c8 100644
--- a/libdw/dwarf_dieoffset.c
+++ b/libdw/dwarf_dieoffset.c
@@ -1,5 +1,5 @@
/* Return offset of DIE.
- Copyright (C) 2003, 2005 Red Hat, Inc.
+ Copyright (C) 2003-2010 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2003.
@@ -62,7 +62,6 @@ dwarf_dieoffset (die)
{
return (die == NULL
? ~0ul
- : (Dwarf_Off) (die->addr
- - die->cu->dbg->sectiondata[IDX_debug_info]->d_buf));
+ : (Dwarf_Off) (die->addr - cu_data (die->cu)->d_buf));
}
INTDEF(dwarf_dieoffset)