Author: cwittich
Date: Sun May 31 17:29:55 2009
New Revision: 41220
URL: 
http://svn.reactos.org/svn/reactos?rev=41220&view=rev
Log:
-show EIP in hex
-clear regs on disconnect
Modified:
    trunk/tools/reactosdbg/DebugProtocol/DebugConnection.cs
    trunk/tools/reactosdbg/DebugProtocol/Registers.cs
    trunk/tools/reactosdbg/RosDBG/Dockable Objects/RegisterView.cs
    trunk/tools/reactosdbg/RosDBG/Properties/AssemblyInfo.cs
Modified: trunk/tools/reactosdbg/DebugProtocol/DebugConnection.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/reactosdbg/DebugProtocol/Deb…
==============================================================================
--- trunk/tools/reactosdbg/DebugProtocol/DebugConnection.cs [iso-8859-1] (original)
+++ trunk/tools/reactosdbg/DebugProtocol/DebugConnection.cs [iso-8859-1] Sun May 31
17:29:55 2009
@@ -1,5 +1,6 @@
 using System;
 using System.Collections.Generic;
+using System.ComponentModel;
 using System.Linq;
 using System.Text;
 using 
System.Net;
@@ -74,6 +75,7 @@
         ulong mTid;
         public ulong ThreadId { get { return mTid; } set { mTid = value; } }
         ulong mEip;
+        [TypeConverter(typeof(UlongToHexTypeConverter))]
         public ulong Eip { get { return mEip; } set { mEip = value; } }
         string mDescription;
         public string Description { get { return mDescription; } set { mDescription =
value; } }
Modified: trunk/tools/reactosdbg/DebugProtocol/Registers.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/reactosdbg/DebugProtocol/Reg…
==============================================================================
--- trunk/tools/reactosdbg/DebugProtocol/Registers.cs [iso-8859-1] (original)
+++ trunk/tools/reactosdbg/DebugProtocol/Registers.cs [iso-8859-1] Sun May 31 17:29:55
2009
@@ -88,5 +88,11 @@
         [TypeConverter(typeof(UlongToHexTypeConverter))]
         public ulong Ss { get { return RegisterSet[15]; } set { RegisterSet[15] = value;
} }
         public ulong[] RegisterSet = new ulong[32];
+
+        public void Clear()
+        {
+            RegisterSet = new ulong[32];
+        }
+
     }
 }
Modified: trunk/tools/reactosdbg/RosDBG/Dockable Objects/RegisterView.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/reactosdbg/RosDBG/Dockable%2…
==============================================================================
--- trunk/tools/reactosdbg/RosDBG/Dockable Objects/RegisterView.cs [iso-8859-1] (original)
+++ trunk/tools/reactosdbg/RosDBG/Dockable Objects/RegisterView.cs [iso-8859-1] Sun May 31
17:29:55 2009
@@ -29,6 +29,7 @@
             mConnection = conn;
             mConnection.DebugRegisterChangeEvent += DebugRegisterChangeEvent;
             mConnection.DebugRunningChangeEvent += DebugRunningChangeEvent;
+            mConnection.DebugConnectionModeChangedEvent +=
DebugConnectionModeChangedEvent;
             if (!mConnection.Running)
             {
                 mConnection.Debugger.GetRegisterUpdate();
@@ -39,6 +40,19 @@
         void UpdateGridEnabled()
         {
             RegisterGrid.Enabled = mGridEnabled;
+        }
+
+        void ClearRegs()
+        {
+            if (mRegisters != null)
+                mRegisters.Clear();
+            UpdateGrid();
+        }
+
+        void DebugConnectionModeChangedEvent(object sender,
DebugConnectionModeChangedEventArgs args)
+        {
+            if (mConnection.ConnectionMode == DebugConnection.Mode.ClosedMode)
+                Invoke(Delegate.CreateDelegate(typeof(NoParamsDelegate), this,
"ClearRegs"));
         }
         void DebugRunningChangeEvent(object sender, DebugRunningChangeEventArgs args)
Modified: trunk/tools/reactosdbg/RosDBG/Properties/AssemblyInfo.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/reactosdbg/RosDBG/Properties…
==============================================================================
--- trunk/tools/reactosdbg/RosDBG/Properties/AssemblyInfo.cs [iso-8859-1] (original)
+++ trunk/tools/reactosdbg/RosDBG/Properties/AssemblyInfo.cs [iso-8859-1] Sun May 31
17:29:55 2009
@@ -39,5 +39,5 @@
 // will be increased as well. MSI installers must not be generated with the same Build
Number
 // otherwise they won't upgrade the old installation!
-[assembly: AssemblyVersion("1.0.2.14")]
-[assembly: AssemblyFileVersion("1.0.2.14")]
+[assembly: AssemblyVersion("1.0.2.20")]
+[assembly: AssemblyFileVersion("1.0.2.20")]