X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d656f9465e7b1c36319f86eeafdcec58fe9551a4..f09d7e3fcf1e6f76b8391b451d5f43b175fd42dc:/src/mc/mc_unw.hpp?ds=sidebyside diff --git a/src/mc/mc_unw.hpp b/src/mc/mc_unw.hpp index 7eeec0a0a3..f629b8cf02 100644 --- a/src/mc/mc_unw.hpp +++ b/src/mc/mc_unw.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2015-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2015-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. */ @@ -30,7 +30,6 @@ #include #include -#include namespace simgrid { namespace unw { @@ -49,10 +48,7 @@ class UnwindContext { unw_context_t unwindContext_; public: - 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 @@ -74,8 +70,7 @@ public: static unw_addr_space_t createUnwindAddressSpace(); }; -void MC_dump_stack_unw(FILE* file, unw_cursor_t cursor); -void dumpStack(FILE* file, unw_cursor_t cursor); +void dumpStack(FILE* file, unw_cursor_t&& cursor); void dumpStack(FILE* file, pid_t pid); } }