diff options
author | Roland McGrath <roland@redhat.com> | 2009-08-10 15:08:08 -0700 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2009-08-10 15:08:08 -0700 |
commit | 08277bac843e776849e8282ba1c7a9d73cad0632 (patch) | |
tree | 713ac83938f1eeba4b6901891f9f65fb0d7629a7 | |
parent | ebfb6484d5e164f2b7f428a8c92d55c4083f55fd (diff) | |
download | elfutils-08277bac843e776849e8282ba1c7a9d73cad0632.tar.gz |
Use dwarf_diename in place of open-coding it.
-rw-r--r-- | libdw/ChangeLog | 4 | ||||
-rw-r--r-- | libdw/dwarf_getscopevar.c | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/libdw/ChangeLog b/libdw/ChangeLog index 3aa75c81..c2f66cbc 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,3 +1,7 @@ +2009-08-10 Roland McGrath <roland@redhat.com> + + * dwarf_getscopevar.c: Use dwarf_diename. + 2009-08-09 Roland McGrath <roland@redhat.com> * libdw.map (ELFUTILS_0.143): New version set, diff --git a/libdw/dwarf_getscopevar.c b/libdw/dwarf_getscopevar.c index 4e5b429e..6ce214f5 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. */ |