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

github.com/mono/debugger-libs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornosami <jasonimison@gmail.com>2022-10-25 13:46:40 +0300
committernosami <jasonimison@gmail.com>2022-10-25 13:46:40 +0300
commit9ae81bd3764d37cb6b544ca397d8087750766562 (patch)
treef43cd082f3f220d353fc7786a4ddc3a7124b834a
parent1b0ffdec138f05e781f01e2986ddeb1903a1f689 (diff)
Put expression cache back
-rw-r--r--Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs b/Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs
index bcc2253..64a1f58 100644
--- a/Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs
+++ b/Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs
@@ -1009,8 +1009,8 @@ namespace Mono.Debugging.Client
public virtual string ResolveExpression (string expression, SourceLocation location)
{
var key = expression + " " + location;
- string resolved = null;
- //if (!resolvedExpressionCache.TryGetValue (key, out var resolved)) {
+
+ if (!resolvedExpressionCache.TryGetValue (key, out var resolved)) {
try {
resolved = OnResolveExpression (expression, location);
} catch (Exception ex) {
@@ -1018,7 +1018,7 @@ namespace Mono.Debugging.Client
OnDebuggerOutput (true, "Error while resolving expression: " + ex.Message);
}
resolvedExpressionCache [key] = resolved;
- //}
+ }
return resolved ?? expression;
}