This commit is contained in:
mterwoord_cp 2010-04-11 18:01:17 +00:00
parent dc1012a3c4
commit 00cddecc3c
3 changed files with 18 additions and 4 deletions

View file

@ -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;
}
}

View file

@ -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);

View file

@ -288,4 +288,4 @@ namespace Cosmos.Debug.VSDebugEngine
mDebugEngine.DebugConnector.SendCommand((byte)Command.Step);
}
}
}
}