Author: arty
Date: Sat Aug 2 04:48:48 2008
New Revision: 35028
URL:
http://svn.reactos.org/svn/reactos?rev=35028&view=rev
Log:
Automatic modules. This will be safe at early breakin after the int1 fix
that's forthcoming.
Modified:
trunk/tools/reactosdbg/DebugProtocol/KDBG.cs
trunk/tools/reactosdbg/RosDBG/Modules.cs
Modified: trunk/tools/reactosdbg/DebugProtocol/KDBG.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/reactosdbg/DebugProtocol/KDB…
==============================================================================
--- trunk/tools/reactosdbg/DebugProtocol/KDBG.cs [iso-8859-1] (original)
+++ trunk/tools/reactosdbg/DebugProtocol/KDBG.cs [iso-8859-1] Sat Aug 2 04:48:48 2008
@@ -39,6 +39,7 @@
static Regex mRegLineEFLAGS = new Regex("EFLAGS
0x(?<eflags>[0-9a-fA-F]+).*");
static Regex mSregLine = new Regex("[CDEFGS]S
0x(?<seg>[0-9a-fA-F]+).*");
+ bool mFirstModuleUpdate = false;
StringBuilder mInputBuffer = new StringBuilder();
int usedInput;
@@ -83,8 +84,13 @@
if (cleanedLine.StartsWith("Entered debugger on "))
{
GetRegisterUpdate();
+ continue;
+ }
+
+ if (!mFirstModuleUpdate)
+ {
GetModuleUpdate();
- continue;
+ mFirstModuleUpdate = true;
}
Match memoryMatch = mMemoryRowUpdate.Match(cleanedLine);
@@ -289,23 +295,27 @@
{
QueueCommand("step");
GetRegisterUpdate();
+ GetModuleUpdate();
}
public void Next()
{
QueueCommand("next");
GetRegisterUpdate();
+ GetModuleUpdate();
}
public void Break()
{
mConnection.Write("\r");
GetRegisterUpdate();
+ GetModuleUpdate();
}
public void Go(ulong address)
{
mRunning = true;
+ mFirstModuleUpdate = false;
QueueCommand("cont");
}
Modified: trunk/tools/reactosdbg/RosDBG/Modules.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/reactosdbg/RosDBG/Modules.cs…
==============================================================================
--- trunk/tools/reactosdbg/RosDBG/Modules.cs [iso-8859-1] (original)
+++ trunk/tools/reactosdbg/RosDBG/Modules.cs [iso-8859-1] Sat Aug 2 04:48:48 2008
@@ -10,7 +10,7 @@
namespace RosDBG
{
- [DebugControl]
+ [DebugControl,BuildAtStartup]
public partial class Modules : UserControl, IUseDebugConnection
{
public SortedList<uint, string> mModules = new SortedList<uint,
string>();