public void SetDebugConnection(DebugConnection conn) { mConnection = conn; mConnection.DebugRegisterChangeEvent += DebugRegisterChangeEvent; mConnection.DebugRunningChangeEvent += DebugRunningChangeEvent; mConnection.DebugModuleChangedEvent += DebugModuleChangedEvent; }
public void SetDebugConnection(DebugConnection conn) { mConnection = conn; mConnection.DebugRegisterChangeEvent += DebugRegisterChangeEvent; mConnection.DebugRunningChangeEvent += DebugRunningChangeEvent; mConnection.DebugModuleChangedEvent += DebugModuleChangedEvent; }
public void SetDebugConnection(DebugConnection conn) { conn.DebugModuleChangedEvent += DebugModuleChangedEvent; if (!conn.Running) { conn.Debugger.GetModuleUpdate(); } }
public void SetDebugConnection(DebugConnection conn) { mConnection = conn; conn.DebugRunningChangeEvent += DebugRunningChangeEvent; conn.DebugRegisterChangeEvent += new DebugRegisterChangeEventHandler(DebugRegisterChangeEvent); conn.DebugBreakpointChangeEvent += new DebugBreakpointChangeEventHandler(DebugBreakpointChangeEvent); mRunning = conn.Running; if (!mConnection.Running) mConnection.Debugger.GetBreakpoints(); }
public void SetDebugConnection(DebugConnection conn) { mConnection = conn; conn.DebugRunningChangeEvent += DebugRunningChangeEvent; conn.DebugRegisterChangeEvent += new DebugRegisterChangeEventHandler(DebugRegisterChangeEvent); conn.DebugBreakpointChangeEvent += new DebugBreakpointChangeEventHandler(DebugBreakpointChangeEvent); mRunning = conn.Running; if (!mConnection.Running) { mConnection.Debugger.GetBreakpoints(); } }
public void SetDebugConnection(DebugConnection conn) { mConnection = conn; mConnection.DebugRegisterChangeEvent += DebugRegisterChangeEvent; mConnection.DebugRunningChangeEvent += DebugRunningChangeEvent; mConnection.DebugConnectionModeChangedEvent += DebugConnectionModeChangedEvent; if (!mConnection.Running) { mConnection.Debugger.GetRegisterUpdate(); mConnection.Debugger.GetProcesses(); } }
public void SetDebugConnection(DebugConnection conn) { mConnection = conn; mConnection.DebugRegisterChangeEvent += DebugRegisterChangeEvent; mConnection.DebugRunningChangeEvent += DebugRunningChangeEvent; mConnection.DebugConnectionModeChangedEvent += DebugConnectionModeChangedEvent; if (!mConnection.Running) { mConnection.Debugger.GetRegisterUpdate(); mConnection.Debugger.GetProcesses(); } }
public DisplayValue(DebugConnection conn, Registers reg, Variable var) { mName = var.Name; mConnection = conn; mRegisters = reg; mVariable = var; mReader = new BinaryReader(mConnection.NewMemoryStream()); StringBuilder sb = new StringBuilder(); ulong regVal; byte[] buf = new byte[mVariable.Size]; if (mVariable.Regval) { regVal = GetRegisterValue(mVariable.Reg); sb.Append(string.Format("{0:X}", regVal)); mValue = sb.ToString(); return; } else if (mVariable.Regrel) { regVal = GetRegisterValue(mVariable.Reg); mReader.BaseStream.Seek((long)regVal + mVariable.Offset, SeekOrigin.Begin); mReader.Read(buf, 0, buf.Length); } else if (mVariable.Local || mVariable.Parameter) { mReader.BaseStream.Seek(mVariable.Offset, SeekOrigin.Begin); mReader.Read(buf, 0, buf.Length); } if (buf.Length == 4) { sb.Append(string.Format("{3:X2}{2:X2}{1:X2}{0:X2}", buf[0], buf[1], buf[2], buf[3])); } else { foreach (byte b in buf) { sb.Append(string.Format("{0:X2} ", (int)b)); } } mValue = sb.ToString(); }
public void SetDebugConnection(DebugConnection conn) { mConnection = conn; conn.DebugRunningChangeEvent += DebugRunningChangeEvent; mRunning = conn.Running; }
public void SetDebugConnection(DebugConnection conn) { mConnection = conn; conn.DebugRawTrafficEvent += DebugRawTrafficEvent; }
public DisplayValue(DebugConnection conn, Registers reg, Variable var) { mName = var.Name; mConnection = conn; mRegisters = reg; mVariable = var; mReader = new BinaryReader(mConnection.NewMemoryStream()); StringBuilder sb = new StringBuilder(); ulong regVal; byte[] buf = new byte[mVariable.Size]; if (mVariable.Regval) { regVal = GetRegisterValue(mVariable.Reg); sb.Append(string.Format("{0:X}", regVal)); mValue = sb.ToString(); return; } else if (mVariable.Regrel) { regVal = GetRegisterValue(mVariable.Reg); mReader.BaseStream.Seek((long)regVal + mVariable.Offset, SeekOrigin.Begin); mReader.Read(buf, 0, buf.Length); } else if (mVariable.Local || mVariable.Parameter) { mReader.BaseStream.Seek(mVariable.Offset, SeekOrigin.Begin); mReader.Read(buf, 0, buf.Length); } if (buf.Length == 4) { sb.Append(string.Format("{3:X2}{2:X2}{1:X2}{0:X2}", buf[0], buf[1], buf[2], buf[3])); } else { foreach (byte b in buf) sb.Append(string.Format("{0:X2} ", (int)b)); } mValue = sb.ToString(); }
public void SetDebugConnection(DebugConnection conn) { conn.DebugModuleChangedEvent += DebugModuleChangedEvent; if (!conn.Running) conn.Debugger.GetModuleUpdate(); }
public DebugMemoryStream(DebugConnection conn) { mConnection = conn; }
public DebugConnectionModeChangedEventArgs(DebugConnection.Mode mode) { Mode = mode; }
public void SetDebugConnection(DebugConnection conn) { mConnection = conn; conn.DebugRunningChangeEvent += DebugRunningChangeEvent; mRunning = conn.Running; }
public void SetDebugConnection(DebugConnection conn) { mConnection = conn; mConnection.DebugProcessThreadChangeEvent += DebugProcessThreadChangeEvent; }
public void SetDebugConnection(DebugConnection conn) { mConnection = conn; conn.DebugRawTrafficEvent += DebugRawTrafficEvent; }
public void SetDebugConnection(DebugConnection conn) { mConnection = conn; mConnection.DebugProcessThreadChangeEvent += DebugProcessThreadChangeEvent; }
public DebugMemoryStream(DebugConnection conn) { mConnection = conn; }