mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-24 12:35:31 +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()
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -81,15 +81,22 @@ namespace Cosmos.Debug.Common.CDebugger
|
||||||
uint xIndex = 0;
|
uint xIndex = 0;
|
||||||
for (xIndex = 0; xIndex < xSourceStrings.Length; xIndex++)
|
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++;
|
xIndex++;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (; xIndex < xSourceStrings.Length; xIndex++)
|
for (; xIndex < xSourceStrings.Length; xIndex++)
|
||||||
{
|
{
|
||||||
var xLine = xSourceStrings[xIndex];
|
var xLine = xSourceStrings[xIndex].Trim();
|
||||||
if (xLine.Length > 21)
|
if (xLine.Length > 21)
|
||||||
{
|
{
|
||||||
uint xAddress = UInt32.Parse(xLine.Substring(0, 8), System.Globalization.NumberStyles.HexNumber);
|
uint xAddress = UInt32.Parse(xLine.Substring(0, 8), System.Globalization.NumberStyles.HexNumber);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue