assert (modname.length() != 0);
if (! is_user_module (modname)) continue;
- struct dwflpp *mod_dwflpp = new dwflpp(s, modname, false);
- mod_dwflpp->iterate_over_modules(&query_module, mod_dwflpp);
- if (mod_dwflpp->module) // existing binary
+ dwflpp mod_dwflpp (s, modname, false);
+ mod_dwflpp.iterate_over_modules(&query_module, &mod_dwflpp);
+ if (mod_dwflpp.module) // existing binary
{
- assert (mod_dwflpp->module_name != "");
- mod_dwflpp->iterate_over_libraries (&add_unwindsym_iol_callback, &added);
+ assert (mod_dwflpp.module_name != "");
+ mod_dwflpp.iterate_over_libraries (&add_unwindsym_iol_callback, &added);
}
- delete mod_dwflpp;
}
s.unwindsym_modules.insert (added.begin(), added.end());