Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Move things in simgrid::mc
[simgrid.git] / src / mc / mc_ignore.cpp
index ccac733..1df9b1a 100644 (file)
@@ -5,7 +5,6 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "src/internal_config.h"
-#include "src/mc/mc_object_info.h"
 #include "src/mc/mc_private.h"
 #include "src/smpi/private.h"
 #include "src/mc/mc_snapshot.h"
@@ -77,7 +76,7 @@ void MC_ignore_global_variable(const char *name)
  *  @param context
  *  @param size    Size of the stack
  */
-void MC_register_stack_area(void *stack, smx_process_t process, void *context, size_t size)
+void MC_register_stack_area(void *stack, smx_process_t process, ucontext_t* context, size_t size)
 {
   if (mc_mode != MC_MODE_CLIENT)
     return;
@@ -93,9 +92,9 @@ void MC_register_stack_area(void *stack, smx_process_t process, void *context, s
       ((char *) stack -
        (char *) heap->heapbase) / BLOCKSIZE + 1;
 #ifdef HAVE_SMPI
-  if (smpi_privatize_global_variables && process) {
+  if (smpi_privatize_global_variables && process)
     region.process_index = smpi_process_index_of_smx_process(process);
-  else
+  else
 #endif
   region.process_index = -1;