From fec99ddb25840d7d7147e4ce9717748fcef8a63a Mon Sep 17 00:00:00 2001 From: Andrey Kurdyumov Date: Sun, 8 Feb 2015 21:58:01 +0600 Subject: [PATCH] Change UInt64 to long This is due to inability Dapper handle UInt64 with SQLite --- .../ReadNAsmMapToDebugInfo.cs | 4 +-- source/Cosmos.Debug.Common/DebugInfo.cs | 22 +++++++------- source/Cosmos.Debug.Common/DebugModel.cs | 30 +++++++++---------- source/Cosmos.Debug.Common/ObjDump.cs | 4 +-- .../AD7.Impl/AD7PendingBreakpoint.cs | 2 +- source/Cosmos.IL2CPU/AppAssembler.cs | 4 +-- 6 files changed, 33 insertions(+), 33 deletions(-) diff --git a/source/Cosmos.Build.MSBuild/ReadNAsmMapToDebugInfo.cs b/source/Cosmos.Build.MSBuild/ReadNAsmMapToDebugInfo.cs index c64c8cf4a..3f97b1d73 100644 --- a/source/Cosmos.Build.MSBuild/ReadNAsmMapToDebugInfo.cs +++ b/source/Cosmos.Build.MSBuild/ReadNAsmMapToDebugInfo.cs @@ -79,10 +79,10 @@ namespace Cosmos.Build.MSBuild { { uint xAddress = UInt32.Parse(xLineParts[0], NumberStyles.HexNumber); - ulong xId; + long xId; if (xLineParts[2].StartsWith("GUID_")) { - xId = ulong.Parse(xLineParts[2].Substring(5)); + xId = long.Parse(xLineParts[2].Substring(5)); } else { diff --git a/source/Cosmos.Debug.Common/DebugInfo.cs b/source/Cosmos.Debug.Common/DebugInfo.cs index b8d66767a..e7f6cb2f3 100644 --- a/source/Cosmos.Debug.Common/DebugInfo.cs +++ b/source/Cosmos.Debug.Common/DebugInfo.cs @@ -21,27 +21,27 @@ namespace Cosmos.Debug.Common /// /// Current id of the generation. /// - private static UInt64 mLastGuid = 0; + private static long mLastGuid = 0; /// /// Range for the id generation process. /// - private static UInt64 mPrefix = 0; + private static long mPrefix = 0; /// /// Specifies range which is used by the assembler during compilation phase. /// - public const ulong AssemblerDebugSymbolsRange = 0xUL; + public const long AssemblerDebugSymbolsRange = 0xL; /// /// Specifies range which is used by the Elf map extraction process. /// - public const ulong ElfFileMapExtractionRange = 0x1000000000000000UL; + public const long ElfFileMapExtractionRange = 0x1000000000000000L; /// /// Specifies range which is used by the Nasm map extraction process. /// - public const ulong NAsmMapExtractionRange = 0x4000000000000000UL; + public const long NAsmMapExtractionRange = 0x4000000000000000L; // Please beware this field, it may cause issues if used incorrectly. public static DebugInfo CurrentInstance { get; private set; } @@ -316,7 +316,7 @@ namespace Cosmos.Debug.Common // Quick look up of assemblies so we dont have to go to the database and compare by fullname. // This and other GUID lists contain only a few members, and save us from issuing a lot of selects to SQL. - public Dictionary AssemblyGUIDs = new Dictionary(); + public Dictionary AssemblyGUIDs = new Dictionary(); List xAssemblies = new List(); public void AddAssemblies(List aAssemblies, bool aFlush = false) { @@ -338,7 +338,7 @@ namespace Cosmos.Debug.Common BulkInsert("AssemblyFiles", xAssemblies, 2500, aFlush); } - public Dictionary DocumentGUIDs = new Dictionary(); + public Dictionary DocumentGUIDs = new Dictionary(); List xDocuments = new List(1); public void AddDocument(string aPathname, bool aFlush = false) { @@ -500,7 +500,7 @@ namespace Cosmos.Debug.Common public Label GetMethodHeaderLabel(UInt32 aAddress) { - var xAddress = (ulong)aAddress; + var xAddress = (long)aAddress; var xLabels = mConnection.Query