From d76989ddd542bfb3fdcfd6993e3fe416290e4bdc Mon Sep 17 00:00:00 2001
From: mterwoord_cp <7cd3fd84a0151ea055c2f79e4d2eef9576fe9afesxUZAwxD>
Date: Sun, 13 Jul 2014 14:06:09 +0000
Subject: [PATCH] .
---
.../Cosmos.Build.MSBuild/ExtractMapFromElfFile.cs | 15 +--------------
source2/IL2CPU/Cosmos.IL2CPU/AppAssembler.cs | 2 +-
.../Kudzu/Breakpoints/Kudzu.Breakpoints.Cosmos | 8 ++++----
.../Matthijs/DebugCompiler/Program.ExtractMap.cs | 2 +-
.../DebugCompiler/Program.TestCompiler.cs | 2 +-
5 files changed, 8 insertions(+), 21 deletions(-)
diff --git a/source2/Build/Cosmos.Build.MSBuild/ExtractMapFromElfFile.cs b/source2/Build/Cosmos.Build.MSBuild/ExtractMapFromElfFile.cs
index df79a2887..43ad69e88 100644
--- a/source2/Build/Cosmos.Build.MSBuild/ExtractMapFromElfFile.cs
+++ b/source2/Build/Cosmos.Build.MSBuild/ExtractMapFromElfFile.cs
@@ -126,7 +126,7 @@ namespace Cosmos.Build.MSBuild {
}
else
{
- xGuid = Guid.NewGuid();
+ xGuid = DebugInfo.Guid_NewGuid();
}
xLabels.Add(new Label()
@@ -139,19 +139,6 @@ namespace Cosmos.Build.MSBuild {
}
xDebugInfo.AddLabels(xLabels, true);
}
-
- //// All labels are in DB, now go back and match up Method.LabelStart
- //using (var xDB = xDebugInfo.DB())
- //{
- // //TODO: EF keeps all items in RAM, even after AcceptChanges.
- // // Right now we only have a few hundred methods, but when this grows we
- // // need to find a way around this. Future EF versions might addresst this better.
- // // Current EF versions require us to destroy the context and create a new one.
- // foreach (var xMethod in xDB.Methods)
- // {
- // //xMethod
- // }
- //}
}
return true;
diff --git a/source2/IL2CPU/Cosmos.IL2CPU/AppAssembler.cs b/source2/IL2CPU/Cosmos.IL2CPU/AppAssembler.cs
index 57660cc9d..b807010f3 100644
--- a/source2/IL2CPU/Cosmos.IL2CPU/AppAssembler.cs
+++ b/source2/IL2CPU/Cosmos.IL2CPU/AppAssembler.cs
@@ -1233,7 +1233,7 @@ namespace Cosmos.IL2CPU
var expectedDifference = aMethod.LocalVariablesSize;
foreach (var item in Assembler.Stack)
{
- expectedDifference += item.Size;
+ expectedDifference += X86.IL.Ldarg.Align(item.Size, 4);
}
// if debugstub is active, emit a stack corruption detection. at this point EBP and ESP should have the same value.
diff --git a/source2/Users/Kudzu/Breakpoints/Kudzu.Breakpoints.Cosmos b/source2/Users/Kudzu/Breakpoints/Kudzu.Breakpoints.Cosmos
index 6a82e7ccd..ae2402563 100644
--- a/source2/Users/Kudzu/Breakpoints/Kudzu.Breakpoints.Cosmos
+++ b/source2/Users/Kudzu/Breakpoints/Kudzu.Breakpoints.Cosmos
@@ -19,7 +19,7 @@
bin\Debug\
MicrosoftNET
False
- False
+ True
Source
User
PXE
@@ -66,7 +66,7 @@
MicrosoftNET
False
All
- False
+ True
False
ISO
None
@@ -136,7 +136,7 @@
MicrosoftNET
False
Source
- False
+ True
Workstation
@@ -212,7 +212,7 @@
bin\Debug\
MicrosoftNET
False
- False
+ True
False
PXE with Slave (Kudzu)
Creates a PXE setup and hosts a DCHP and TFTP server to deploy directly to physical hardware. Allows debugging with a serial cable.
diff --git a/source2/Users/Matthijs/DebugCompiler/Program.ExtractMap.cs b/source2/Users/Matthijs/DebugCompiler/Program.ExtractMap.cs
index 04d32d862..68126edd8 100644
--- a/source2/Users/Matthijs/DebugCompiler/Program.ExtractMap.cs
+++ b/source2/Users/Matthijs/DebugCompiler/Program.ExtractMap.cs
@@ -15,7 +15,7 @@
// var task = new ExtractMapFromElfFile
// {
// CosmosBuildDir = @"c:\Data\Sources\Cosmos\Build",
-// DebugInfoFile=@"c:\data\sources\dbg.cdb",
+// DebugInfoFile = @"c:\Data\Sources\Cosmos\source2\Users\Kudzu\Breakpoints\bin\Debug\Kudzu.Breakpoints.cdb",
// InputFile = @"c:\Data\Sources\Cosmos\source2\Users\Kudzu\Breakpoints\bin\Debug\Kudzu.Breakpoints.bin",
// WorkingDir = @"c:\Data\Sources\Cosmos\source2\Users\Kudzu\Breakpoints\bin\Debug\"
// };
diff --git a/source2/Users/Matthijs/DebugCompiler/Program.TestCompiler.cs b/source2/Users/Matthijs/DebugCompiler/Program.TestCompiler.cs
index 806addded..6e4bba770 100644
--- a/source2/Users/Matthijs/DebugCompiler/Program.TestCompiler.cs
+++ b/source2/Users/Matthijs/DebugCompiler/Program.TestCompiler.cs
@@ -154,7 +154,7 @@ namespace DebugCompiler
{
get
{
- return new String[] {"FullPath"};
+ return new String[] { "FullPath" };
}
}