Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : if get_libsimgrid_plt_section called before first snapshot, libsimgri...
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Thu, 18 Oct 2012 19:37:55 +0000 (21:37 +0200)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Sat, 27 Oct 2012 20:35:39 +0000 (22:35 +0200)
src/mc/mc_checkpoint.c

index ad1de43..b6721f6 100644 (file)
@@ -222,7 +222,10 @@ void get_libsimgrid_plt_section(){
   int i, plt_not_found = 1;
   unsigned long int size, offset;
 
   int i, plt_not_found = 1;
   unsigned long int size, offset;
 
-  char *command = bprintf( "objdump --section-headers %s", libsimgrid_path);
+  if(libsimgrid_path == NULL)
+    libsimgrid_path = get_libsimgrid_path();
+
+  char *command = bprintf("objdump --section-headers %s", libsimgrid_path);
 
   fp = popen(command, "r");
 
 
   fp = popen(command, "r");
 
@@ -259,7 +262,6 @@ void get_libsimgrid_plt_section(){
       }
     }
     
       }
     }
     
-    
   }
 
   free(command);
   }
 
   free(command);