X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e6a1650c1da9d6a60f8fc5d12ebce854120ccdb7..1f0cb94603e4eecb76d7e7cefa9a832f04dc48e6:/src/mc/inspect/mc_unw.hpp diff --git a/src/mc/inspect/mc_unw.hpp b/src/mc/inspect/mc_unw.hpp index 38ffac200a..462486a3f6 100644 --- a/src/mc/inspect/mc_unw.hpp +++ b/src/mc/inspect/mc_unw.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2015-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2015-2021. 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. */ @@ -44,11 +44,11 @@ namespace mc { class UnwindContext { simgrid::mc::AddressSpace* address_space_ = nullptr; - simgrid::mc::RemoteSimulation* process_ = nullptr; - unw_context_t unwind_context_; + simgrid::mc::RemoteProcess* process_ = nullptr; + unw_context_t unwind_context_ = {}; public: - void initialize(simgrid::mc::RemoteSimulation* process, unw_context_t* c); + void initialize(simgrid::mc::RemoteProcess* process, unw_context_t* c); unw_cursor_t cursor(); private: // Methods and virtual table for libunwind @@ -61,7 +61,6 @@ private: // Methods and virtual table for libunwind static int access_reg(unw_addr_space_t as, unw_regnum_t regnum, unw_word_t* valp, int write, void* arg) noexcept; static int get_proc_name(unw_addr_space_t as, unw_word_t addr, char* bufp, size_t buf_len, unw_word_t* offp, void* arg) noexcept; - static unw_accessors_t accessors; public: // Create a libunwind address space: