projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
01f8364
)
Fix snapshot code
master
author
bdemsky
<bdemsky@uci.edu>
Fri, 13 Oct 2017 05:29:13 +0000
(22:29 -0700)
committer
bdemsky
<bdemsky@uci.edu>
Fri, 13 Oct 2017 05:29:13 +0000
(22:29 -0700)
snapshot-interface.cc
patch
|
blob
|
history
diff --git
a/snapshot-interface.cc
b/snapshot-interface.cc
index fdabcf33549349acb203ac201608461aa25d049c..5242d168fb4072552cda80f5069b85c3a29fd95b 100644
(file)
--- a/
snapshot-interface.cc
+++ b/
snapshot-interface.cc
@@
-64,15
+64,17
@@
static void SnapshotGlobalSegments()
char smstr[23];
char r, w, x;
char mr, mw, mx;
char smstr[23];
char r, w, x;
char mr, mw, mx;
- int size;
void *begin, *end;
//Skip out at the end of the section
if (buf[0] == '\n')
break;
void *begin, *end;
//Skip out at the end of the section
if (buf[0] == '\n')
break;
- sscanf(buf, "%22s %p-%p
[%5dK] %c%c%c/%c%c%c SM=%3s %200s\n", type, &begin, &end, &size, &r, &w, &x, &mr, &mw, &mx, smstr, regionname
);
+ sscanf(buf, "%22s %p-%p
", type, &begin, &end
);
+ char * secondpart = strstr(buf, "]");
+
+ sscanf(&secondpart[2], "%c%c%c/%c%c%c SM=%3s %200s\n", &r, &w, &x, &mr, &mw, &mx, smstr, regionname);
if (w == 'w' && strstr(regionname, MYBINARYNAME)) {
size_t len = ((uintptr_t)end - (uintptr_t)begin) / PAGESIZE;
if (len != 0)
if (w == 'w' && strstr(regionname, MYBINARYNAME)) {
size_t len = ((uintptr_t)end - (uintptr_t)begin) / PAGESIZE;
if (len != 0)