summaryrefslogtreecommitdiffstats
path: root/libdw/dwarf_diecu.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2010-06-15 23:10:35 -0700
committerRoland McGrath <[email protected]>2010-06-16 12:11:03 -0700
commit3e0f7d1d1b817040cef82f41879f471ab59b663e (patch)
tree42999dc59b7bab5c0524f15a7f928cb2905f49d5 /libdw/dwarf_diecu.c
parent3e4b5bbeca8987527c11a1ea048459a7ebd4ab5e (diff)
Handle reading .debug_types section.
Diffstat (limited to 'libdw/dwarf_diecu.c')
-rw-r--r--libdw/dwarf_diecu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdw/dwarf_diecu.c b/libdw/dwarf_diecu.c
index a62b8222..e3e52521 100644
--- a/libdw/dwarf_diecu.c
+++ b/libdw/dwarf_diecu.c
@@ -1,5 +1,5 @@
/* Return CU DIE containing given DIE.
- Copyright (C) 2005, 2008 Red Hat, Inc.
+ Copyright (C) 2005-2010 Red Hat, Inc.
This file is part of Red Hat elfutils.
Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -71,7 +71,8 @@ dwarf_diecu (die, result, address_sizep, offset_sizep)
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->offset_size,
+ die->cu->type_offset != 0));
result->cu = die->cu;
if (address_sizep != NULL)