]> sourceware.org Git - systemtap.git/commitdiff
Fix kallsyms_expand_symbol.exp regression after commit 4d51e8.
authorMark Wielaard <mjw@redhat.com>
Wed, 7 Mar 2012 14:22:57 +0000 (15:22 +0100)
committerMark Wielaard <mjw@redhat.com>
Wed, 7 Mar 2012 14:22:57 +0000 (15:22 +0100)
In dwflpp::find_variable_and_frame_base() when we do a search for a search
for an alternative vardie we need to saved the actual vardie content in
case we fail, no just copy the pointer to the vardie data...

dwflpp.cxx

index ab4e6d5ccfb1405a1b2cb6efced9c0b6630c5444..c356f55a5f681fda31dd645f3df6a9567f42a0fb 100644 (file)
@@ -2157,7 +2157,7 @@ dwflpp::find_variable_and_frame_base (vector<Dwarf_Die>& scopes,
       && dwarf_attr_integrate (vardie, DW_AT_external, &attr_mem) != NULL
       && dwarf_tag(&scopes[declaring_scope]) == DW_TAG_compile_unit)
     {
-      Dwarf_Die *orig_vardie = vardie;
+      Dwarf_Die orig_vardie = *vardie;
       bool alt_found = false;
       if (dwarf_child(&scopes[declaring_scope], vardie) == 0)
        do
@@ -2175,7 +2175,7 @@ dwflpp::find_variable_and_frame_base (vector<Dwarf_Die>& scopes,
        while (!alt_found && dwarf_siblingof(vardie, vardie) == 0);
 
       if (! alt_found)
-       vardie = orig_vardie;
+       *vardie = orig_vardie;
     }
 
   /* We start out walking the "lexical scopes" as returned by
This page took 0.032327 seconds and 5 git commands to generate.