-/* Copyright (c) 2015-2018. 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. */
#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);
}
}