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...
&& 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
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