diff options
author | Therzok <teromario@yahoo.com> | 2013-08-30 16:15:00 +0400 |
---|---|---|
committer | Therzok <teromario@yahoo.com> | 2013-09-03 02:21:15 +0400 |
commit | efbe738d9d84b352f3b23560d0b42ba810ae18db (patch) | |
tree | cd9d2de4c72a9c17023721eaa3c3e5d2a731a4df | |
parent | e348dbaccde2bb935c0be908910765ed2850d3f7 (diff) |
[CorDebug] Mirror ArrayAdaptor.
-rw-r--r-- | extras/MonoDevelop.Debugger.Win32/CorApi2/debug/Value.cs | 4 | ||||
-rw-r--r-- | extras/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/ArrayAdaptor.cs | 10 |
2 files changed, 2 insertions, 12 deletions
diff --git a/extras/MonoDevelop.Debugger.Win32/CorApi2/debug/Value.cs b/extras/MonoDevelop.Debugger.Win32/CorApi2/debug/Value.cs index 184c6b6f32..a3722f36b6 100644 --- a/extras/MonoDevelop.Debugger.Win32/CorApi2/debug/Value.cs +++ b/extras/MonoDevelop.Debugger.Win32/CorApi2/debug/Value.cs @@ -739,9 +739,9 @@ namespace Microsoft.Samples.Debugging.CorDebug {
Debug.Assert(Rank!=0);
uint[] dims = new uint[Rank];
- m_arrayVal.GetDimensions((uint)dims.Length,dims);
+ m_arrayVal.GetDimensions((uint)dims.Length, dims);
- int[] sdims = Array.ConvertAll<uint,int>( dims, delegate(uint u) { return (int)u; } );
+ int[] sdims = Array.ConvertAll<uint,int>(dims, delegate(uint u) { return (int)u; });
return sdims;
}
diff --git a/extras/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/ArrayAdaptor.cs b/extras/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/ArrayAdaptor.cs index 095fc8a27b..0f2dfe3c9f 100644 --- a/extras/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/ArrayAdaptor.cs +++ b/extras/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/ArrayAdaptor.cs @@ -74,15 +74,5 @@ namespace MonoDevelop.Debugger.Win32 return obj.Val.ExactType.FirstTypeParameter; } } - - public ObjectValue CreateElementValue (ArrayElementGroup grp, ObjectPath path, int[] indices) - { - if (array != null) { - CorValRef elem = (CorValRef) GetElement (indices); - return ctx.Adapter.CreateObjectValue (ctx, grp, path, elem, ObjectValueFlags.ArrayElement); - } - else - return ObjectValue.CreateUnknown ("?"); - } } } |