From 59b86108d2ce4267163d9376c503ec78f2e8ec51 Mon Sep 17 00:00:00 2001 From: Matthew Khouzam Date: Wed, 27 Nov 2013 15:06:07 -0500 Subject: [PATCH] ctf: remove false positive in the case of cross-packet events Change-Id: I8ba4d1edee641aa52c03c2f7742f672700b3282f Signed-off-by: Matthew Khouzam Reviewed-on: https://git.eclipse.org/r/19006 Tested-by: Hudson CI IP-Clean: Alexandre Montplaisir Tested-by: Alexandre Montplaisir Reviewed-by: Alexandre Montplaisir --- .../linuxtools/ctf/core/trace/StreamInputReader.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/StreamInputReader.java b/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/StreamInputReader.java index c943170adb..c92c5d7f4a 100644 --- a/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/StreamInputReader.java +++ b/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); -- 2.34.1