diff options
author | Roland McGrath <[email protected]> | 2010-06-15 23:10:35 -0700 |
---|---|---|
committer | Roland McGrath <[email protected]> | 2010-06-16 12:11:03 -0700 |
commit | 3e0f7d1d1b817040cef82f41879f471ab59b663e (patch) | |
tree | 42999dc59b7bab5c0524f15a7f928cb2905f49d5 /libdw/dwarf_formstring.c | |
parent | 3e4b5bbeca8987527c11a1ea048459a7ebd4ab5e (diff) |
Handle reading .debug_types section.
Diffstat (limited to 'libdw/dwarf_formstring.c')
-rw-r--r-- | libdw/dwarf_formstring.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdw/dwarf_formstring.c b/libdw/dwarf_formstring.c index f95d31b8..1dee9b2d 100644 --- a/libdw/dwarf_formstring.c +++ b/libdw/dwarf_formstring.c @@ -1,5 +1,5 @@ /* Return string associated with given attribute. - Copyright (C) 2003, 2004, 2005 Red Hat, Inc. + Copyright (C) 2003-2010 Red Hat, Inc. This file is part of Red Hat elfutils. Written by Ulrich Drepper <[email protected]>, 2003. @@ -79,7 +79,7 @@ dwarf_formstring (attrp) } uint64_t off; - if (__libdw_read_offset (dbg, IDX_debug_info, attrp->valp, + if (__libdw_read_offset (dbg, cu_sec_idx (attrp->cu), attrp->valp, attrp->cu->offset_size, &off, IDX_debug_str, 1)) return NULL; |