private void applyTraceFields(DebugTraceEntry trace) { foreach (DebugTraceEntryField field in trace.fields) { TraceActiveThread.ApplyTraceData(field.type, field.data); } TraceActiveThread.cia = trace.cia; }
public static DebugTraceEntry readDebugTraceEntry(BinaryReader rdr) { DebugTraceEntry info = new DebugTraceEntry(); info.cia = rdr.ReadUInt32(); ulong numFields = rdr.ReadUInt64(); info.fields = new DebugTraceEntryField[numFields]; for (ulong i = 0; i < numFields; ++i) { info.fields[i].type = (StateField)rdr.ReadUInt32(); info.fields[i].data = rdr.ReadBytes(16); } return(info); }