diff options
author | Jeffrey Stedfast <jeff@xamarin.com> | 2012-04-23 22:23:28 +0400 |
---|---|---|
committer | Jeffrey Stedfast <jeff@xamarin.com> | 2012-04-23 22:23:28 +0400 |
commit | 79771255bc0e0dfe66b9a33e1bbbbf95d93f7bd1 (patch) | |
tree | e96358ab743a0f579530ae19564c4a7d34674afd /main/src/addins | |
parent | b180fd06567eabe9968cdf9723fa1f8ba7476e93 (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.cs | 9 |
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; } |