ctf: add scope to packet header
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 2 May 2014 04:06:23 +0000 (00:06 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Tue, 13 May 2014 01:09:12 +0000 (21:09 -0400)
add a trace defintion scope to a packet header, instead of it being
null.

Change-Id: I6e8d361101fb0a71f25665f921378131744d8d92
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25862
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/StreamInput.java

index 10f41626fff128195209ddae413df128d5aa85a1..03db34231656435a539fd3f6dd7dc6e59b653334 100644 (file)
@@ -362,7 +362,7 @@ public class StreamInput implements IDefinitionScope, AutoCloseable {
 
     private void parseTracePacketHeader(StructDeclaration tracePacketHeaderDecl,
             @NonNull BitBuffer bitBuffer) throws CTFReaderException {
-        StructDefinition tracePacketHeaderDef = tracePacketHeaderDecl.createDefinition(null, LexicalScope.TRACE_PACKET_HEADER.getName(), bitBuffer);
+        StructDefinition tracePacketHeaderDef = tracePacketHeaderDecl.createDefinition(fStream.getTrace(), LexicalScope.TRACE_PACKET_HEADER.getName(), bitBuffer);
 
         /*
          * Check the CTF magic number
This page took 0.028542 seconds and 5 git commands to generate.