X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dccf1b41e9c7b5a696f01abceaa2779fe65f154f..9acedb4ebce15cd3399fcad4effb3fb79a0ee5ef:/src/mc/mc_unw_vmread.cpp diff --git a/src/mc/mc_unw_vmread.cpp b/src/mc/mc_unw_vmread.cpp index 8d5f2496e4..3f37e2a662 100644 --- a/src/mc/mc_unw_vmread.cpp +++ b/src/mc/mc_unw_vmread.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2015. The SimGrid Team. +/* Copyright (c) 2015-2019. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -11,8 +11,8 @@ #include #include -#include "src/mc/Process.hpp" -#include "src/mc/mc_unw.h" +#include "src/mc/mc_unw.hpp" +#include "src/mc/remote/RemoteClient.hpp" /** \file * Libunwind namespace implementation using process_vm_readv. @@ -28,7 +28,7 @@ */ struct _UPT_info { pid_t pid; - // Other things; + // Other things... }; /** Get the PID of a `libunwind-ptrace` context @@ -36,7 +36,7 @@ struct _UPT_info { static inline pid_t _UPT_getpid(void* arg) { - struct _UPT_info* info = (_UPT_info*) arg; + _UPT_info* info = static_cast<_UPT_info*>(arg); return info->pid; } @@ -109,7 +109,7 @@ namespace unw { * 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)`. @@ -132,7 +132,7 @@ unw_addr_space_t create_addr_space() return unw_create_addr_space(&accessors, BYTE_ORDER); } -void* create_context(unw_addr_space_t as, pid_t pid) +void* create_context(unw_addr_space_t /*as*/, pid_t pid) { return _UPT_create(pid); }