From: Roland McGrath Date: Mon, 10 Aug 2009 22:08:08 +0000 (-0700) Subject: Use dwarf_diename in place of open-coding it. X-Git-Tag: elfutils-0.143~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08277bac843e776849e8282ba1c7a9d73cad0632;p=thirdparty%2Felfutils.git Use dwarf_diename in place of open-coding it. --- diff --git a/libdw/ChangeLog b/libdw/ChangeLog index 3aa75c817..c2f66cbca 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,3 +1,7 @@ +2009-08-10 Roland McGrath + + * dwarf_getscopevar.c: Use dwarf_diename. + 2009-08-09 Roland McGrath * libdw.map (ELFUTILS_0.143): New version set, diff --git a/libdw/dwarf_getscopevar.c b/libdw/dwarf_getscopevar.c index 4e5b429ef..6ce214f5f 100644 --- a/libdw/dwarf_getscopevar.c +++ b/libdw/dwarf_getscopevar.c @@ -1,5 +1,5 @@ /* Find a named variable or parameter within given scopes. - Copyright (C) 2005 Red Hat, Inc. + Copyright (C) 2005-2009 Red Hat, Inc. This file is part of Red Hat elfutils. Red Hat elfutils is free software; you can redistribute it and/or modify @@ -129,9 +129,7 @@ dwarf_getscopevar (Dwarf_Die *scopes, int nscopes, } /* Only get here for a variable or parameter. Check the name. */ - Dwarf_Attribute attr_mem; - const char *diename = INTUSE(dwarf_formstring) - (INTUSE(dwarf_attr_integrate) (result, DW_AT_name, &attr_mem)); + const char *diename = INTUSE(dwarf_diename) (result); if (diename != NULL && !strcmp (name, diename)) { /* We have a matching name. */