From: Arnaud Giersch Date: Thu, 18 Apr 2019 16:22:17 +0000 (+0200) Subject: Tidy up mc/mc_unw a little. X-Git-Tag: v3.22.2~92 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c124649942221581f4ddac01832ff3ad3fb6770b?hp=4d44525bee1bd3bbe44647622f9259dec37cadea Tidy up mc/mc_unw a little. --- diff --git a/src/mc/mc_unw.cpp b/src/mc/mc_unw.cpp index 78299e3a65..b9a4ceab64 100644 --- a/src/mc/mc_unw.cpp +++ b/src/mc/mc_unw.cpp @@ -220,16 +220,8 @@ unw_addr_space_t UnwindContext::createUnwindAddressSpace() return unw_create_addr_space(&UnwindContext::accessors, BYTE_ORDER); } -void UnwindContext::clear() -{ - addressSpace_ = nullptr; - process_ = nullptr; -} - void UnwindContext::initialize(simgrid::mc::RemoteClient* process, unw_context_t* c) { - clear(); - this->addressSpace_ = process; this->process_ = process; diff --git a/src/mc/mc_unw.hpp b/src/mc/mc_unw.hpp index aedcf7e98d..f629b8cf02 100644 --- a/src/mc/mc_unw.hpp +++ b/src/mc/mc_unw.hpp @@ -48,12 +48,7 @@ class UnwindContext { unw_context_t unwindContext_; public: - UnwindContext() = default; - UnwindContext(const UnwindContext&) = default; - UnwindContext& operator=(const UnwindContext&) = default; - ~UnwindContext() { clear(); } void initialize(simgrid::mc::RemoteClient* process, unw_context_t* c); - void clear(); unw_cursor_t cursor(); private: // Methods and virtual table for libunwind