X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/242fde5e8077f8193db4df5f262a9672085c8d8a..756df47074b2d7b0721f234077f5ef8d75e13932:/src/mc/mc_unw.h diff --git a/src/mc/mc_unw.h b/src/mc/mc_unw.h index 7928d0b2c4..53982a0b9e 100644 --- a/src/mc/mc_unw.h +++ b/src/mc/mc_unw.h @@ -1,6 +1,5 @@ /* Copyright (c) 2015. The SimGrid Team. - -/ * All rights reserved. */ + * 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. */ @@ -27,7 +26,9 @@ * much here. */ -#include "mc_process.h" +#include + +#include "src/mc/Process.hpp" SG_BEGIN_DECL() @@ -44,7 +45,7 @@ SG_BEGIN_DECL() * * It works with `void*` contexts allocated with `_UPT_create(pid)`. */ -extern unw_accessors_t mc_unw_vmread_accessors; +extern XBT_PRIVATE unw_accessors_t mc_unw_vmread_accessors; /** Virtual table for our `libunwind` implementation * @@ -53,26 +54,26 @@ extern unw_accessors_t mc_unw_vmread_accessors; * * It works with the `s_mc_unw_context_t` context. */ -extern XBT_INTERNAL unw_accessors_t mc_unw_accessors; +extern XBT_PRIVATE unw_accessors_t mc_unw_accessors; // ***** Libunwind context /** A `libunwind` context */ -typedef struct s_mc_unw_context { +typedef struct XBT_PRIVATE s_mc_unw_context { simgrid::mc::AddressSpace* address_space; simgrid::mc::Process* process; unw_context_t context; } s_mc_unw_context_t, *mc_unw_context_t; /** Initialises an already allocated context */ -XBT_INTERNAL int mc_unw_init_context( +XBT_PRIVATE int mc_unw_init_context( mc_unw_context_t context, simgrid::mc::Process* process, unw_context_t* c); // ***** Libunwind cursor /** Initialises a `libunwind` cursor */ -XBT_INTERNAL int mc_unw_init_cursor(unw_cursor_t *cursor, mc_unw_context_t context); +XBT_PRIVATE int mc_unw_init_cursor(unw_cursor_t *cursor, mc_unw_context_t context); SG_END_DECL()