X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/39c935d6d5ee86d153f6f7e6a10d723ae7c57f6f..9a4ec91cc24a9a54ff3a060cc2828ac54d0c0c26:/teshsuite/mc/dwarf-expression/dwarf-expression.cpp diff --git a/teshsuite/mc/dwarf-expression/dwarf-expression.cpp b/teshsuite/mc/dwarf-expression/dwarf-expression.cpp index 3cb50f5ec4..cccdce3709 100644 --- a/teshsuite/mc/dwarf-expression/dwarf-expression.cpp +++ b/teshsuite/mc/dwarf-expression/dwarf-expression.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2014-2023. 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. */ @@ -12,15 +12,18 @@ #include "src/mc/inspect/ObjectInformation.hpp" #include "src/mc/inspect/Type.hpp" #include "src/mc/inspect/Variable.hpp" -#include "src/mc/remote/RemoteSimulation.hpp" +#include "src/mc/sosp/RemoteProcessMemory.hpp" #include #include #include -#include -#include +#include +#include -static std::default_random_engine rnd_engine; +static uintptr_t rnd_engine() +{ + return simgrid::xbt::random::uniform_int(std::numeric_limits::min(), std::numeric_limits::max()); +} static uintptr_t eval_binary_operation(simgrid::dwarf::ExpressionContext const& state, uint8_t op, uintptr_t a, uintptr_t b) @@ -145,8 +148,7 @@ static void test_deref(simgrid::dwarf::ExpressionContext const& state) int main() { - auto* process = new simgrid::mc::RemoteSimulation(getpid()); - process->init(); + auto* process = new simgrid::mc::RemoteProcessMemory(getpid(), nullptr); simgrid::dwarf::ExpressionContext state; state.address_space = (simgrid::mc::AddressSpace*) process;