continue;
}else{
XBT_DEBUG("Different byte (offset=%zu) (%p - %p) in data libsimgrid region", i, (char *)d1 + i, (char *)d2 + i);
+ XBT_DEBUG("Addresses pointed : %p - %p\n", addr_pointed1, addr_pointed2);
distance++;
}
}
if(fp == NULL)
perror("popen failed");
- while ((read = getline(&line, &n, fp)) != -1 && plt_not_found) {
+ while ((read = getline(&line, &n, fp)) != -1 && plt_not_found == 1) {
if(n == 0)
continue;
offset = strtoul(lfields[4], NULL, 16);
start_plt = (char *)start_text_libsimgrid + offset;
end_plt = (char *)start_plt + size;
- fprintf(stderr, ".plt section : %p - %p \n", start_plt, end_plt);
plt_not_found = 0;
}
}
}
+ free(command);
free(line);
pclose(fp);