From 97d03bd1e9fa320fea33761e6decf8a475507896 Mon Sep 17 00:00:00 2001 From: kudzu_cp <6d05c8c8ef5431987001abfdb2eadc9593ac9498> Date: Thu, 2 Aug 2012 18:56:52 +0000 Subject: [PATCH] --- .../DebugModel.Designer.cs | 26 +++++++++---------- .../Debug/Cosmos.Debug.Common/DebugModel.edmx | 6 ++--- .../Cosmos.Debug.Common/DebugModel.edmx.sql | 4 +-- .../AD7.Impl/AD7StackFrame.cs | 4 +-- .../Cosmos.IL2CPU.X86/AppAssemblerNasm.cs | 6 ++--- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/source2/Debug/Cosmos.Debug.Common/DebugModel.Designer.cs b/source2/Debug/Cosmos.Debug.Common/DebugModel.Designer.cs index f14828318..36460c878 100644 --- a/source2/Debug/Cosmos.Debug.Common/DebugModel.Designer.cs +++ b/source2/Debug/Cosmos.Debug.Common/DebugModel.Designer.cs @@ -557,17 +557,17 @@ namespace Cosmos.Debug.Common /// Create a new LOCAL_ARGUMENT_INFO object. /// /// Initial value of the METHODLABELNAME property. - /// Initial value of the ISARGUMENT property. + /// Initial value of the IsArgument property. /// Initial value of the INDEXINMETHOD property. /// Initial value of the OFFSET property. /// Initial value of the NAME property. /// Initial value of the TYPENAME property. /// Initial value of the ID property. - public static LOCAL_ARGUMENT_INFO CreateLOCAL_ARGUMENT_INFO(global::System.String mETHODLABELNAME, global::System.Int16 iSARGUMENT, global::System.Int32 iNDEXINMETHOD, global::System.Int32 oFFSET, global::System.String nAME, global::System.String tYPENAME, global::System.Guid id) + public static LOCAL_ARGUMENT_INFO CreateLOCAL_ARGUMENT_INFO(global::System.String mETHODLABELNAME, global::System.Boolean isArgument, global::System.Int32 iNDEXINMETHOD, global::System.Int32 oFFSET, global::System.String nAME, global::System.String tYPENAME, global::System.Guid id) { LOCAL_ARGUMENT_INFO lOCAL_ARGUMENT_INFO = new LOCAL_ARGUMENT_INFO(); lOCAL_ARGUMENT_INFO.METHODLABELNAME = mETHODLABELNAME; - lOCAL_ARGUMENT_INFO.ISARGUMENT = iSARGUMENT; + lOCAL_ARGUMENT_INFO.IsArgument = isArgument; lOCAL_ARGUMENT_INFO.INDEXINMETHOD = iNDEXINMETHOD; lOCAL_ARGUMENT_INFO.OFFSET = oFFSET; lOCAL_ARGUMENT_INFO.NAME = nAME; @@ -608,24 +608,24 @@ namespace Cosmos.Debug.Common /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] - public global::System.Int16 ISARGUMENT + public global::System.Boolean IsArgument { get { - return _ISARGUMENT; + return _IsArgument; } set { - OnISARGUMENTChanging(value); - ReportPropertyChanging("ISARGUMENT"); - _ISARGUMENT = StructuralObject.SetValidValue(value); - ReportPropertyChanged("ISARGUMENT"); - OnISARGUMENTChanged(); + OnIsArgumentChanging(value); + ReportPropertyChanging("IsArgument"); + _IsArgument = StructuralObject.SetValidValue(value); + ReportPropertyChanged("IsArgument"); + OnIsArgumentChanged(); } } - private global::System.Int16 _ISARGUMENT; - partial void OnISARGUMENTChanging(global::System.Int16 value); - partial void OnISARGUMENTChanged(); + private global::System.Boolean _IsArgument; + partial void OnIsArgumentChanging(global::System.Boolean value); + partial void OnIsArgumentChanged(); /// /// No Metadata Documentation available. diff --git a/source2/Debug/Cosmos.Debug.Common/DebugModel.edmx b/source2/Debug/Cosmos.Debug.Common/DebugModel.edmx index ef87d937c..fd98aaf86 100644 --- a/source2/Debug/Cosmos.Debug.Common/DebugModel.edmx +++ b/source2/Debug/Cosmos.Debug.Common/DebugModel.edmx @@ -42,7 +42,7 @@ - + @@ -103,7 +103,7 @@ - + @@ -162,7 +162,7 @@ - + diff --git a/source2/Debug/Cosmos.Debug.Common/DebugModel.edmx.sql b/source2/Debug/Cosmos.Debug.Common/DebugModel.edmx.sql index fbb214cf3..fadfe1ba4 100644 --- a/source2/Debug/Cosmos.Debug.Common/DebugModel.edmx.sql +++ b/source2/Debug/Cosmos.Debug.Common/DebugModel.edmx.sql @@ -2,7 +2,7 @@ -- -------------------------------------------------- -- Entity Designer DDL Script for SQL Server 2005, 2008, and Azure -- -------------------------------------------------- --- Date Created: 08/02/2012 14:51:27 +-- Date Created: 08/02/2012 14:55:28 -- Generated from EDMX file: D:\source\Cosmos\source2\Debug\Cosmos.Debug.Common\DebugModel.edmx -- -------------------------------------------------- @@ -70,7 +70,7 @@ GO -- Creating table 'LOCAL_ARGUMENT_INFO' CREATE TABLE [dbo].[LOCAL_ARGUMENT_INFO] ( [METHODLABELNAME] nvarchar(512) NOT NULL, - [ISARGUMENT] smallint NOT NULL, + [IsArgument] bit NOT NULL, [INDEXINMETHOD] int NOT NULL, [OFFSET] int NOT NULL, [NAME] nvarchar(64) NOT NULL, diff --git a/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7StackFrame.cs b/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7StackFrame.cs index 94b2bc131..04420bbcb 100644 --- a/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7StackFrame.cs +++ b/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7StackFrame.cs @@ -67,8 +67,8 @@ namespace Cosmos.Debug.VSDebugEngine { if (xSymbolInfo != null) { using (var xDB = xProcess.mDebugInfoDb.DB()) { var xAllInfos = xDB.LOCAL_ARGUMENT_INFO.Where(q => q.METHODLABELNAME == xSymbolInfo.METHODNAME).ToArray(); - mLocalInfos = xAllInfos.Where(q => q.ISARGUMENT == 0).ToArray(); - mArgumentInfos = xAllInfos.Where(q => q.ISARGUMENT != 0).ToArray(); + mLocalInfos = xAllInfos.Where(q => !q.IsArgument).ToArray(); + mArgumentInfos = xAllInfos.Where(q => q.IsArgument).ToArray(); } m_numLocals = mLocalInfos.Length; m_numParameters = mArgumentInfos.Length; diff --git a/source2/IL2CPU/Cosmos.IL2CPU.X86/AppAssemblerNasm.cs b/source2/IL2CPU/Cosmos.IL2CPU.X86/AppAssemblerNasm.cs index 95d1e3d21..87b3fd263 100644 --- a/source2/IL2CPU/Cosmos.IL2CPU.X86/AppAssemblerNasm.cs +++ b/source2/IL2CPU/Cosmos.IL2CPU.X86/AppAssemblerNasm.cs @@ -86,7 +86,7 @@ namespace Cosmos.IL2CPU.X86 { foreach (var xLocal in xBody.LocalVariables) { var xInfo = new LOCAL_ARGUMENT_INFO { METHODLABELNAME = xMethodLabel, - ISARGUMENT = 0, + IsArgument = false, INDEXINMETHOD = xLocal.LocalIndex, NAME = "Local" + xLocal.LocalIndex, OFFSET = 0 - (int)ILOp.GetEBPOffsetForLocalForDebugger(aMethod, xLocal.LocalIndex), @@ -120,7 +120,7 @@ namespace Cosmos.IL2CPU.X86 { if (!aMethod.MethodBase.IsStatic) { mLocals_Arguments_Infos.Add(new LOCAL_ARGUMENT_INFO { METHODLABELNAME = xMethodLabel, - ISARGUMENT = 1, + IsArgument = true, NAME = "this:" + IL.Ldarg.GetArgumentDisplacement(aMethod, 0), INDEXINMETHOD = 0, OFFSET = IL.Ldarg.GetArgumentDisplacement(aMethod, 0), @@ -139,7 +139,7 @@ namespace Cosmos.IL2CPU.X86 { xOffset -= (int)Cosmos.IL2CPU.X86.ILOp.Align(Cosmos.IL2CPU.X86.ILOp.SizeOfType(xParams[i].ParameterType), 4) - 4; mLocals_Arguments_Infos.Add(new LOCAL_ARGUMENT_INFO { METHODLABELNAME = xMethodLabel, - ISARGUMENT = 1, + IsArgument = true, INDEXINMETHOD = (int)(i + xIdxOffset), NAME = xParams[i].Name, OFFSET = xOffset,