Exemplo n.º 1
0
 public void SetDebugConnection(DebugConnection conn)
 {
     mConnection = conn;
     mConnection.DebugRegisterChangeEvent += DebugRegisterChangeEvent;
     mConnection.DebugRunningChangeEvent += DebugRunningChangeEvent;
     mConnection.DebugModuleChangedEvent += DebugModuleChangedEvent;
 }
Exemplo n.º 2
0
 public void SetDebugConnection(DebugConnection conn)
 {
     mConnection = conn;
     mConnection.DebugRegisterChangeEvent += DebugRegisterChangeEvent;
     mConnection.DebugRunningChangeEvent  += DebugRunningChangeEvent;
     mConnection.DebugModuleChangedEvent  += DebugModuleChangedEvent;
 }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 5
0
 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();
     }
 }
Exemplo n.º 7
0
 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();
     }
 }
Exemplo n.º 8
0
            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;
 }
Exemplo n.º 10
0
 public void SetDebugConnection(DebugConnection conn)
 {
     mConnection = conn;
     conn.DebugRawTrafficEvent += DebugRawTrafficEvent;
 }
Exemplo n.º 11
0
            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();
            }
Exemplo n.º 12
0
 public void SetDebugConnection(DebugConnection conn)
 {
     conn.DebugModuleChangedEvent += DebugModuleChangedEvent;
     if (!conn.Running)
         conn.Debugger.GetModuleUpdate();
 }
Exemplo n.º 13
0
 public DebugMemoryStream(DebugConnection conn)
 {
     mConnection = conn;
 }
 public DebugConnectionModeChangedEventArgs(DebugConnection.Mode mode)
 {
     Mode = mode;
 }
Exemplo n.º 15
0
 public void SetDebugConnection(DebugConnection conn)
 {
     mConnection = conn;
     conn.DebugRunningChangeEvent += DebugRunningChangeEvent;
     mRunning = conn.Running;
 }
Exemplo n.º 16
0
 public void SetDebugConnection(DebugConnection conn)
 {
     mConnection = conn;
     mConnection.DebugProcessThreadChangeEvent += DebugProcessThreadChangeEvent;
 }
Exemplo n.º 17
0
 public void SetDebugConnection(DebugConnection conn)
 {
     mConnection = conn;
     conn.DebugRawTrafficEvent += DebugRawTrafficEvent;
 }
Exemplo n.º 18
0
 public void SetDebugConnection(DebugConnection conn)
 {
     mConnection = conn;
     mConnection.DebugProcessThreadChangeEvent += DebugProcessThreadChangeEvent;
 }
 public DebugMemoryStream(DebugConnection conn)
 {
     mConnection = conn;
 }