X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ea004bc6314126b0d5c878636ed442f3592a0d10..fe304706848f0a64477d4687b3ea97d5b9a0c35c:/teshsuite/mc/dwarf/dwarf.cpp diff --git a/teshsuite/mc/dwarf/dwarf.cpp b/teshsuite/mc/dwarf/dwarf.cpp index cd3cc80e65..c3f876ea74 100644 --- a/teshsuite/mc/dwarf/dwarf.cpp +++ b/teshsuite/mc/dwarf/dwarf.cpp @@ -1,5 +1,4 @@ -/* Copyright (c) 2014-2019. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2014-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -8,19 +7,19 @@ #undef NDEBUG #endif -#include -#include - #include #include "mc/datatypes.h" #include "src/mc/mc_private.hpp" -#include "src/mc/ObjectInformation.hpp" -#include "src/mc/Type.hpp" -#include "src/mc/Variable.hpp" +#include "src/mc/inspect/ObjectInformation.hpp" +#include "src/mc/inspect/Type.hpp" +#include "src/mc/inspect/Variable.hpp" #include "src/mc/remote/RemoteClient.hpp" +#include +#include + // Test broken with multi-dimensional arrays. See https://sourceware.org/bugzilla/show_bug.cgi?id=22546 // int test_some_array[4][5][6]; int test_some_array[4 * 5 * 6]; @@ -65,8 +64,7 @@ static void test_local_variable(simgrid::mc::ObjectInformation* info, const char assert(var); void* frame_base = subprogram->frame_base(*cursor); - simgrid::dwarf::Location location = simgrid::dwarf::resolve( - var->location_list, info, cursor, frame_base, nullptr, -1); + simgrid::dwarf::Location location = simgrid::dwarf::resolve(var->location_list, info, cursor, frame_base, nullptr); xbt_assert(location.in_memory(), "Expected the variable %s of function %s to be in memory", variable, function); xbt_assert(location.address() == address, "Bad resolution of local variable %s of %s", variable, function);