Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Stedfast <jeff@xamarin.com>2012-04-23 22:23:28 +0400
committerJeffrey Stedfast <jeff@xamarin.com>2012-04-23 22:23:28 +0400
commit79771255bc0e0dfe66b9a33e1bbbbf95d93f7bd1 (patch)
treee96358ab743a0f579530ae19564c4a7d34674afd /main/src/addins
parentb180fd06567eabe9968cdf9723fa1f8ba7476e93 (diff)
[Debugger] Improved error message for instance fields inside generated iterator class
Fixes bug #4527.
Diffstat (limited to 'main/src/addins')
-rw-r--r--main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs b/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs
index eb95cabb61..f419b755ef 100644
--- a/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs
+++ b/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs
@@ -752,9 +752,14 @@ namespace Mono.Debugging.Soft
public override string GetTypeName (EvaluationContext ctx, object val)
{
TypeMirror tm = val as TypeMirror;
- if (tm != null)
+ if (tm != null) {
+ if (IsGeneratedType (tm)) {
+ // Return the name of the container-type.
+ return tm.FullName.Substring (0, tm.FullName.LastIndexOf ('+'));
+ }
+
return tm.FullName;
- else
+ } else
return ((Type)val).FullName;
}