diff options
author | Roland McGrath <roland@redhat.com> | 2010-06-20 17:25:35 -0700 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2010-06-20 17:25:35 -0700 |
commit | 5cc030d6169713ff4711c28a6ce1250b142cd5b3 (patch) | |
tree | 812fddfdaac429d454398fcc38e8f45123cc1003 /libdw/dwarf_dieoffset.c | |
parent | 183e8abb7bce1b51759f1f16529db7f31e3ec705 (diff) | |
download | android_external_elfutils-5cc030d6169713ff4711c28a6ce1250b142cd5b3.tar.gz android_external_elfutils-5cc030d6169713ff4711c28a6ce1250b142cd5b3.tar.bz2 android_external_elfutils-5cc030d6169713ff4711c28a6ce1250b142cd5b3.zip |
Fix up some holes in .debug_types support.
Diffstat (limited to 'libdw/dwarf_dieoffset.c')
-rw-r--r-- | libdw/dwarf_dieoffset.c | 5 |
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) |