Remove default arg usage from sdb dll so it can be compiled with csc 3.5
authorMichael Hutchinson <mhutchinson@novell.com>
Mon, 13 Dec 2010 18:14:50 +0000 (13:14 -0500)
committerMichael Hutchinson <mhutchinson@novell.com>
Mon, 13 Dec 2010 18:51:30 +0000 (13:51 -0500)
mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/VirtualMachineManager.cs

index df92c17627fe284bd8c6ee602607e4617e2a5a6f..12c5aaaf6f481d8f613f1302ba5f9a8cafd3c077 100644 (file)
@@ -68,7 +68,13 @@ namespace Mono.Debugger.Soft
                        return vm;
                }
 
-               public static IAsyncResult BeginLaunch (ProcessStartInfo info, AsyncCallback callback, LaunchOptions options = null) {
+               public static IAsyncResult BeginLaunch (ProcessStartInfo info, AsyncCallback callback)
+               {
+                       return BeginLaunch (info, callback, null);
+               }
+
+               public static IAsyncResult BeginLaunch (ProcessStartInfo info, AsyncCallback callback, LaunchOptions options)
+               {
                        if (info == null)
                                throw new ArgumentNullException ("info");
 
@@ -116,11 +122,23 @@ namespace Mono.Debugger.Soft
                        return cb.EndInvoke (asyncResult);
                }
 
-               public static VirtualMachine Launch (ProcessStartInfo info, LaunchOptions options = null) {
+               public static VirtualMachine Launch (ProcessStartInfo info)
+               {
+                       return Launch (info, null);
+               }
+
+               public static VirtualMachine Launch (ProcessStartInfo info, LaunchOptions options)
+               {
                        return EndLaunch (BeginLaunch (info, null, options));
                }
 
-               public static VirtualMachine Launch (string[] args, LaunchOptions options = null) {
+               public static VirtualMachine Launch (string[] args)
+               {
+                       return Launch (args, null);
+               }
+
+               public static VirtualMachine Launch (string[] args, LaunchOptions options)
+               {
                        ProcessStartInfo pi = new ProcessStartInfo ("mono");
                        pi.Arguments = String.Join (" ", args);
 
@@ -213,7 +231,13 @@ namespace Mono.Debugger.Soft
                        return cb.EndInvoke (asyncResult);
                }
 
-               public static VirtualMachine Listen (IPEndPoint dbg_ep, IPEndPoint con_ep = null) { 
+               public static VirtualMachine Listen (IPEndPoint dbg_ep)
+               {
+                       return Listen (dbg_ep, null);
+               }
+
+               public static VirtualMachine Listen (IPEndPoint dbg_ep, IPEndPoint con_ep)
+               {
                        return EndListen (BeginListen (dbg_ep, con_ep, null));
                }