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
path: root/main
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2011-10-25 22:30:39 +0400
committerZoltan Varga <vargaz@gmail.com>2011-10-25 22:30:39 +0400
commite76bbc3a5e4afec83bd58cb23e8ee6431affe2dd (patch)
tree92007ec3fb7abe46e574600a281a28e99ca47b36 /main
parent9445f903438ccdf60c99c1a5a6983d8108074699 (diff)
Fix OverloadResolve on older sdb versions.
Diffstat (limited to 'main')
-rw-r--r--main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs8
1 files changed, 6 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 738ee20ef8..3febf3ebac 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
@@ -909,8 +909,12 @@ namespace Mono.Debugging.Soft
cache.TryGetValue (Tuple.Create (currentType, methodName), out methods);
}
}
- if (methods == null)
- methods = currentType.GetMethodsByNameFlags (methodName, BindingFlags.Public|BindingFlags.NonPublic|BindingFlags.Instance|BindingFlags.Static, !ctx.CaseSensitive);
+ if (methods == null) {
+ if (currentType.VirtualMachine.Version.AtLeast (2, 7))
+ methods = currentType.GetMethodsByNameFlags (methodName, BindingFlags.Public|BindingFlags.NonPublic|BindingFlags.Instance|BindingFlags.Static, !ctx.CaseSensitive);
+ else
+ methods = currentType.GetMethods ();
+ }
if (ctx.CaseSensitive) {
lock (cache) {
cache [Tuple.Create (currentType, methodName)] = methods;