projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
get new block fix
[lttv.git]
/
ltt
/
branches
/
poly
/
ltt-newlib
/
tracefile.c
diff --git
a/ltt/branches/poly/ltt-newlib/tracefile.c
b/ltt/branches/poly/ltt-newlib/tracefile.c
index 65f618b8f2babf46f1f069ccc2b02439d0b17e34..312829c9601cbc163989154dac4cc07095c84c14 100644
(file)
--- a/
ltt/branches/poly/ltt-newlib/tracefile.c
+++ b/
ltt/branches/poly/ltt-newlib/tracefile.c
@@
-1359,6
+1359,13
@@
LttEvent *ltt_tracefile_read(LttTracefile *tf)
g_error("Can not map block");
return NULL;
}
+ /* seek to the first event */
+ err = ltt_seek_next_event(tf);
+ if(unlikely(err == ERANGE)) {
+ g_error("event id is out of range\n");
+ return NULL;
+ }
+
pos = tf->event.offset;
}
}
This page took
0.023278 seconds
and
4
git commands to generate.