diff options
author | David Karlaš <david.karlas@xamarin.com> | 2015-02-26 00:31:03 +0300 |
---|---|---|
committer | David Karlaš <david.karlas@xamarin.com> | 2015-02-27 20:41:51 +0300 |
commit | 14a831d22e7df58fb1e02fa527db3c3b78eef390 (patch) | |
tree | 48554cba42f66521e4affcee7f95578d93d8e315 /main/src/addins/MonoDevelop.Debugger.Win32 | |
parent | 79e205278c670242fde8ae71a14fee1c16afaecc (diff) |
[CorDebugger] Fixed variables evaluation with Roslyn assemblies
Diffstat (limited to 'main/src/addins/MonoDevelop.Debugger.Win32')
-rw-r--r-- | main/src/addins/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/CorObjectAdaptor.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/CorObjectAdaptor.cs b/main/src/addins/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/CorObjectAdaptor.cs index a01ece9cc7..dc4a4e5969 100644 --- a/main/src/addins/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/CorObjectAdaptor.cs +++ b/main/src/addins/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/CorObjectAdaptor.cs @@ -1329,8 +1329,10 @@ namespace MonoDevelop.Debugger.Win32 {
// mcs is "<>f__ref"
// csc is "CS$<>"
+ // roslyn is "<>8__"
return field.Name.StartsWith ("CS$<>", StringComparison.Ordinal) ||
- field.Name.StartsWith ("<>f__ref", StringComparison.Ordinal);
+ field.Name.StartsWith ("<>f__ref", StringComparison.Ordinal) ||
+ field.Name.StartsWith ("<>8__", StringComparison.Ordinal);
}
static bool IsClosureReferenceLocal (ISymbolVariable local)
@@ -1444,7 +1446,7 @@ namespace MonoDevelop.Debugger.Win32 bool isIterator = IsGeneratedType (t);
var list = new List<ValueReference> ();
- foreach (FieldInfo field in t.GetFields ()) {
+ foreach (FieldInfo field in t.GetFields (BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance)) {
if (IsHoistedThisReference (field))
continue;
if (IsClosureReferenceField (field)) {
|