Permalink
Browse files

Kill 'USE_DOMAIN'.

  • Loading branch information...
1 parent 732b68f commit 14572c1828a386a52b051f8997e3b733ff397e3a Martin Baulig committed Jul 31, 2010
Showing with 0 additions and 23 deletions.
  1. +0 −23 classes/Debugger.cs
View
@@ -22,30 +22,14 @@ namespace Mono.Debugger
public class Debugger : DebuggerMarshalByRefObject
{
-#if USE_DOMAIN
- AppDomain domain;
-#endif
DebuggerServant servant;
ManualResetEvent kill_event;
public Debugger (DebuggerConfiguration config)
{
kill_event = new ManualResetEvent (false);
-#if USE_DOMAIN
- domain = AppDomain.CreateDomain ("mdb");
-
- ObjectHandle oh = domain.CreateInstance (
- Assembly.GetExecutingAssembly ().FullName,
- typeof (DebuggerServant).FullName, false,
- BindingFlags.Instance | BindingFlags.NonPublic,
- null, new object [] { this, Report.ReportWriter, config },
- null, null, null);
-
- servant = (DebuggerServant) oh.Unwrap ();
-#else
servant = new DebuggerServant (this, Report.ReportWriter, config);
-#endif
}
public event ThreadEventHandler ThreadCreatedEvent;
@@ -270,13 +254,6 @@ protected virtual void Dispose (bool disposing)
servant.Dispose ();
servant = null;
}
-
-#if USE_DOMAIN
- if (domain != null) {
- AppDomain.Unload (domain);
- domain = null;
- }
-#endif
}
}

0 comments on commit 14572c1

Please sign in to comment.