diff options
author | Matthew Khouzam | 2013-11-27 20:06:07 +0000 |
---|---|---|
committer | Matthew Khouzam | 2013-12-02 22:33:28 +0000 |
commit | 3f6928702ec546662c4ed66a6d27a502d178c722 (patch) | |
tree | 27383fc1a6a05e567f11a65687193cd07e928dce | |
parent | 9babd27d649f9cd228da4ddc9055221a43648b50 (diff) | |
download | org.eclipse.linuxtools-3f6928702ec546662c4ed66a6d27a502d178c722.tar.gz org.eclipse.linuxtools-3f6928702ec546662c4ed66a6d27a502d178c722.tar.xz org.eclipse.linuxtools-3f6928702ec546662c4ed66a6d27a502d178c722.zip |
ctf: remove false positive in the case of cross-packet events
Change-Id: I8ba4d1edee641aa52c03c2f7742f672700b3282f
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/19006
Tested-by: Hudson CI
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
-rw-r--r-- | lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/StreamInputReader.java | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/StreamInputReader.java b/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/StreamInputReader.java index c943170adb..c92c5d7f4a 100644 --- a/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/StreamInputReader.java +++ b/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/StreamInputReader.java @@ -19,7 +19,6 @@ import java.util.Map; import org.eclipse.linuxtools.ctf.core.event.EventDefinition; import org.eclipse.linuxtools.ctf.core.event.types.StructDefinition; -import org.eclipse.linuxtools.internal.ctf.core.Activator; import org.eclipse.linuxtools.internal.ctf.core.trace.StreamInputPacketIndexEntry; /** @@ -226,16 +225,7 @@ public class StreamInputReader { * If an event is available, read it. */ if (this.packetReader.hasMoreEvents()) { - try { - this.setCurrentEvent(this.packetReader.readNextEvent()); - } catch (CTFReaderException e) { - /* - * Some problem happened, we'll assume that there are no more - * events - */ - Activator.logError("Error reading CTF event in stream", e); //$NON-NLS-1$ - return false; - } + this.setCurrentEvent(this.packetReader.readNextEvent()); return true; } this.setCurrentEvent(null); |