-/* Copyright (c) 2015. The SimGrid Team.
+/* Copyright (c) 2015-2017. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
#include <libunwind.h>
#include <libunwind-ptrace.h>
-#include "src/mc/Process.hpp"
#include "src/mc/mc_unw.h"
+#include "src/mc/remote/RemoteClient.hpp"
/** \file
* Libunwind namespace implementation using process_vm_readv.
static inline
pid_t _UPT_getpid(void* arg)
{
- struct _UPT_info* info = (_UPT_info*) arg;
+ struct _UPT_info* info = static_cast<_UPT_info*>(arg);
return info->pid;
}
* does not use ptrace() to read the target process memory by
* `process_vm_readv()` or `/dev/${pid}/mem` if possible.
*
- * Does not support any MC-specific behaviour (privatisation, snapshots)
+ * Does not support any MC-specific behaviour (privatization, snapshots)
* and `ucontext_t`.
*
* It works with `void*` contexts allocated with `_UPT_create(pid)`.
unw_addr_space_t create_addr_space()
{
- return unw_create_addr_space(&accessors, __BYTE_ORDER);
+ return unw_create_addr_space(&accessors, BYTE_ORDER);
}
void* create_context(unw_addr_space_t as, pid_t pid)
}
}
-}
\ No newline at end of file
+}