X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8c6bbb14f44b8daed5ea43d80880c6bf2155118b..500e034474c40c3426ff9a5a300b1170e3984e74:/teshsuite/mc/dwarf/dwarf.cpp diff --git a/teshsuite/mc/dwarf/dwarf.cpp b/teshsuite/mc/dwarf/dwarf.cpp index 18a0c3121f..aa8654585e 100644 --- a/teshsuite/mc/dwarf/dwarf.cpp +++ b/teshsuite/mc/dwarf/dwarf.cpp @@ -16,7 +16,7 @@ #include "src/mc/inspect/ObjectInformation.hpp" #include "src/mc/inspect/Type.hpp" #include "src/mc/inspect/Variable.hpp" -#include "src/mc/remote/RemoteProcess.hpp" +#include "src/mc/sosp/RemoteProcessMemory.hpp" #include #include @@ -78,7 +78,7 @@ static void test_local_variable(simgrid::mc::ObjectInformation* info, const char xbt_assert(location.address() == address, "Bad resolution of local variable %s of %s", variable, function); } -static const simgrid::mc::Variable* test_global_variable(const simgrid::mc::RemoteProcess& process, +static const simgrid::mc::Variable* test_global_variable(const simgrid::mc::RemoteProcessMemory& process, simgrid::mc::ObjectInformation* info, const char* name, void* address, long byte_size) { @@ -110,7 +110,7 @@ struct s_foo { int i; }; -static void test_type_by_name(const simgrid::mc::RemoteProcess& process, s_foo /*my_foo*/) +static void test_type_by_name(const simgrid::mc::RemoteProcessMemory& process, s_foo /*my_foo*/) { assert(process.binary_info->full_types_by_name.find("struct s_foo") != process.binary_info->full_types_by_name.end()); } @@ -122,8 +122,7 @@ int main(int argc, char** argv) const simgrid::mc::Variable* var; simgrid::mc::Type* type; - simgrid::mc::RemoteProcess process(getpid()); - process.init(nullptr, nullptr); + simgrid::mc::RemoteProcessMemory process(getpid(), nullptr); test_global_variable(process, process.binary_info.get(), "some_local_variable", &some_local_variable, sizeof(int));