From 08277bac843e776849e8282ba1c7a9d73cad0632 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 10 Aug 2009 15:08:08 -0700 Subject: [PATCH] Use dwarf_diename in place of open-coding it. --- libdw/ChangeLog | 4 ++++ libdw/dwarf_getscopevar.c | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) 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. */ -- 2.47.2