#include <cstdio>
#include <libunwind.h>
-#include <sys/types.h>
namespace simgrid {
namespace unw {
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();
static unw_addr_space_t createUnwindAddressSpace();
};
-void dumpStack(FILE* file, unw_cursor_t cursor);
+void dumpStack(FILE* file, unw_cursor_t&& cursor);
void dumpStack(FILE* file, pid_t pid);
}
}