X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/739a8e3ebb789b7155f033bfdacba9478095e190..16925d4563b0fd3a17dc7c05f91c9439e6fb2462:/teshsuite/mc/dwarf/dwarf.cpp diff --git a/teshsuite/mc/dwarf/dwarf.cpp b/teshsuite/mc/dwarf/dwarf.cpp index c3f876ea74..f43a8f8231 100644 --- a/teshsuite/mc/dwarf/dwarf.cpp +++ b/teshsuite/mc/dwarf/dwarf.cpp @@ -60,7 +60,7 @@ static void test_local_variable(simgrid::mc::ObjectInformation* info, const char assert(subprogram); // TODO, Lookup frame by IP and test against name instead - simgrid::mc::Variable* var = find_local_variable(subprogram, variable); + const simgrid::mc::Variable* var = find_local_variable(subprogram, variable); assert(var); void* frame_base = subprogram->frame_base(*cursor); @@ -83,7 +83,7 @@ static const simgrid::mc::Variable* test_global_variable(simgrid::mc::RemoteClie auto i = process.binary_info->types.find(variable->type_id); xbt_assert(i != process.binary_info->types.end(), "Missing type for %s", name); - simgrid::mc::Type* type = &i->second; + const simgrid::mc::Type* type = &i->second; xbt_assert(type->byte_size == byte_size, "Byte size mismatch for %s", name); return variable; }