From de69d52c6b10d3ff5dbf88515dc04146d049f7b5 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 7 Aug 2009 18:26:19 -0700 Subject: Use dwarf_attr_integrate in various convenience functions. --- libdw/dwarf_bitoffset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libdw/dwarf_bitoffset.c') diff --git a/libdw/dwarf_bitoffset.c b/libdw/dwarf_bitoffset.c index 235b7ee6..99d1071f 100644 --- a/libdw/dwarf_bitoffset.c +++ b/libdw/dwarf_bitoffset.c @@ -1,5 +1,5 @@ /* Return bit offset attribute of DIE. - Copyright (C) 2003, 2005 Red Hat, Inc. + Copyright (C) 2003, 2005, 2009 Red Hat, Inc. This file is part of Red Hat elfutils. Written by Ulrich Drepper , 2003. @@ -63,7 +63,7 @@ dwarf_bitoffset (die) Dwarf_Attribute attr_mem; Dwarf_Word value; - return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr) (die, DW_AT_bit_offset, - &attr_mem), + return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr_integrate) + (die, DW_AT_bit_offset, &attr_mem), &value) == 0 ? (int) value : -1; } -- cgit v1.2.3