示例#1
0
 private void applyTraceFields(DebugTraceEntry trace)
 {
     foreach (DebugTraceEntryField field in trace.fields)
     {
         TraceActiveThread.ApplyTraceData(field.type, field.data);
     }
     TraceActiveThread.cia = trace.cia;
 }
示例#2
0
        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);
        }