public MDbgIO(MDbgShell shell, string[] startupCommands) { Debug.Assert(shell != null); m_shell = shell; Console.CancelKeyPress += ConsoleBreakHandler; if (startupCommands != null && startupCommands.Length > 0) { m_startupCommands = new Queue(startupCommands); } }
public void startMDbg(O2Thread.FuncVoid onShellStart) { if (shell == null) O2Thread.mtaThread(() => { setMDbgEventsMessagesCallbacks(); shell = new MDbgShell(); shell.Start(new string[0]); setO2MDbgShellCallbacks(); o2MdbgIsReady.Set(); if (onShellStart != null) onShellStart(); }); }