mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 04:48:53 +00:00
This commit is contained in:
parent
dc1012a3c4
commit
00cddecc3c
3 changed files with 18 additions and 4 deletions
|
|
@ -26,7 +26,14 @@ namespace Cosmos.Build.MSBuild
|
|||
|
||||
public override bool Execute()
|
||||
{
|
||||
SourceInfo.WriteToFile(SourceInfo.ParseMapFile(InputBaseDir), OutputFile);
|
||||
var xSourceInfos = SourceInfo.ParseMapFile(InputBaseDir);
|
||||
if (xSourceInfos.Count == 0)
|
||||
{
|
||||
Log.LogError("No SourceInfos found!");
|
||||
return false;
|
||||
}
|
||||
SourceInfo.WriteToFile(xSourceInfos, OutputFile);
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,15 +81,22 @@ namespace Cosmos.Debug.Common.CDebugger
|
|||
uint xIndex = 0;
|
||||
for (xIndex = 0; xIndex < xSourceStrings.Length; xIndex++)
|
||||
{
|
||||
if (xSourceStrings[xIndex].StartsWith("Real Virtual Name"))
|
||||
if (xSourceStrings[xIndex].StartsWith("Real "))
|
||||
{
|
||||
// further check it:
|
||||
//Virtual Name"))
|
||||
if (!xSourceStrings[xIndex].Substring(4).TrimStart().StartsWith("Virtual ")
|
||||
||!xSourceStrings[xIndex].EndsWith(" Name"))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
xIndex++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
for (; xIndex < xSourceStrings.Length; xIndex++)
|
||||
{
|
||||
var xLine = xSourceStrings[xIndex];
|
||||
var xLine = xSourceStrings[xIndex].Trim();
|
||||
if (xLine.Length > 21)
|
||||
{
|
||||
uint xAddress = UInt32.Parse(xLine.Substring(0, 8), System.Globalization.NumberStyles.HexNumber);
|
||||
|
|
|
|||
|
|
@ -288,4 +288,4 @@ namespace Cosmos.Debug.VSDebugEngine
|
|||
mDebugEngine.DebugConnector.SendCommand((byte)Command.Step);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue