- void* frame_base = mc_find_frame_base(subprogram, info, cursor);
- s_mc_location_t location;
-
- mc_dwarf_resolve_locations(&location,
- &var->locations, info, cursor, frame_base, NULL, -1);
-
- xbt_assert(mc_get_location_type(&location)==MC_LOCATION_TYPE_ADDRESS,
- "Unexpected location type for variable %s of %s", variable, function);
+ void* frame_base = subprogram->frame_base(*cursor);
+ simgrid::dwarf::Location location = simgrid::dwarf::resolve(
+ var->location_list, info, cursor, frame_base, NULL, -1);