Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : restore struct smx_ctx_sysv in smx_context_sysv.c
[simgrid.git] / src / mc / mc_global.c
index 6a4b83b..421479d 100644 (file)
@@ -700,7 +700,7 @@ void MC_ignore(void *address, size_t size){
   MC_UNSET_RAW_MEM;
 }
 
-void MC_new_stack_area(void *stack, char *name){
+void MC_new_stack_area(void *stack, char *name, void* context){
 
   if(stacks_areas == NULL)
     stacks_areas = xbt_dynar_new(sizeof(stack_region_t), NULL);
@@ -710,6 +710,7 @@ void MC_new_stack_area(void *stack, char *name){
   region = xbt_new0(s_stack_region_t, 1);
   region->address = stack;
   region->process_name = strdup(name);
+  region->context = context;
   xbt_dynar_push(stacks_areas, &region);
   MC_UNSET_RAW_MEM;
 }