summaryrefslogtreecommitdiffstats
path: root/libdw/dwarf_diecu.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2010-06-20 17:25:35 -0700
committerRoland McGrath <[email protected]>2010-06-20 17:25:35 -0700
commit5cc030d6169713ff4711c28a6ce1250b142cd5b3 (patch)
tree812fddfdaac429d454398fcc38e8f45123cc1003 /libdw/dwarf_diecu.c
parent183e8abb7bce1b51759f1f16529db7f31e3ec705 (diff)
Fix up some holes in .debug_types support.
Diffstat (limited to 'libdw/dwarf_diecu.c')
-rw-r--r--libdw/dwarf_diecu.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/libdw/dwarf_diecu.c b/libdw/dwarf_diecu.c
index e3e52521..cd98cf61 100644
--- a/libdw/dwarf_diecu.c
+++ b/libdw/dwarf_diecu.c
@@ -65,15 +65,7 @@ dwarf_diecu (die, result, address_sizep, offset_sizep)
if (die == NULL)
return NULL;
- /* Clear the entire DIE structure. This signals we have not yet
- determined any of the information. */
- memset (result, '\0', sizeof (Dwarf_Die));
-
- result->addr = ((char *) die->cu->dbg->sectiondata[IDX_debug_info]->d_buf
- + DIE_OFFSET_FROM_CU_OFFSET (die->cu->start,
- die->cu->offset_size,
- die->cu->type_offset != 0));
- result->cu = die->cu;
+ *result = CUDIE (die->cu);
if (address_sizep != NULL)
*address_sizep = die->cu->address_size;