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:
Diffstat (limited to 'Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs')
-rw-r--r--Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs b/Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs
index 9b38e5a..0a8ee83 100644
--- a/Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs
+++ b/Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs
@@ -410,9 +410,10 @@ namespace Mono.Debugging.Client
if (options == null)
throw new ArgumentNullException (nameof (options));
+ Interlocked.Exchange (ref this.options, options);
+
Dispatch (delegate {
try {
- this.options = options;
OnRunning ();
OnRun (startInfo);
} catch (Exception ex) {
@@ -444,9 +445,10 @@ namespace Mono.Debugging.Client
if (options == null)
throw new ArgumentNullException (nameof (options));
+ Interlocked.Exchange (ref this.options, options);
+
Dispatch (delegate {
try {
- this.options = options;
OnRunning ();
OnAttachToProcess (proc);
attached = true;