-/* Copyright (c) 2015. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2015-2017. 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. */
* much here.
*/
-#include <sys/types.h>
-
-#include <xbt/base.h>
+#include "src/mc/mc_forward.hpp"
#include <libunwind.h>
-
-#include "src/mc/mc_forward.hpp"
+#include <sys/types.h>
namespace simgrid {
namespace unw {
class UnwindContext {
simgrid::mc::AddressSpace* addressSpace_ = nullptr;
- simgrid::mc::Process* process_ = nullptr;
- unw_context_t unwindContext_;
+ simgrid::mc::Process* process_ = nullptr;
+ unw_context_t unwindContext_;
+
public:
- UnwindContext() {}
+ UnwindContext() = default;
~UnwindContext() { clear(); }
void initialize(simgrid::mc::Process* process, unw_context_t* c);
void clear();