diff options
author | roland <roland> | 2005-10-14 11:30:40 +0000 |
---|---|---|
committer | roland <roland> | 2005-10-14 11:30:40 +0000 |
commit | 068ddd4357ea29d4cfb611d2ac01dc0e0507d1cf (patch) | |
tree | f0a8c50ee3ed8c3034ca51e0688e1b069da379af /loc2c-test.c | |
parent | 2117e07ff2ba3391a3fa1d12f14fa39dafdc024f (diff) | |
download | systemtap-steved-068ddd4357ea29d4cfb611d2ac01dc0e0507d1cf.tar.gz systemtap-steved-068ddd4357ea29d4cfb611d2ac01dc0e0507d1cf.tar.xz systemtap-steved-068ddd4357ea29d4cfb611d2ac01dc0e0507d1cf.zip |
2005-10-14 Roland McGrath <roland@redhat.com>
* loc2c-test.c (handle_variable): Check for "=" before fetching DIE
from ATTR_MEM.
Diffstat (limited to 'loc2c-test.c')
-rw-r--r-- | loc2c-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loc2c-test.c b/loc2c-test.c index 833894c2..2967b9ed 100644 --- a/loc2c-test.c +++ b/loc2c-test.c @@ -99,8 +99,6 @@ handle_variable (Dwarf_Die *scopes, int nscopes, int out, Dwarf_Die die_mem, *die = vardie; while (*fields != NULL) { - die = dwarf_formref_die (&attr_mem, &die_mem); - if (!strcmp (*fields, "=")) { store = true; @@ -109,6 +107,8 @@ handle_variable (Dwarf_Die *scopes, int nscopes, int out, break; } + die = dwarf_formref_die (&attr_mem, &die_mem); + const int typetag = dwarf_tag (die); switch (typetag) { |