StartGUIManager() private method

private StartGUIManager ( ) : GUIManager
return GUIManager
Exemplo n.º 1
0
        private void OnInitialized(MD.Debugger debugger, Process process)
        {
            Console.WriteLine(">> OnInitialized");

            this.process  = process;
            this.debugger = debugger;

            mdbAdaptor.Process = process;

            guiManager = process.StartGUIManager();

            //FIXME: conditionally add event handlers
            process.TargetOutputEvent += OnTargetOutput;

            debugger.ProcessCreatedEvent += OnProcessCreatedEvent;
            debugger.ProcessExecdEvent   += OnProcessExecdEvent;
            debugger.ProcessExitedEvent  += OnProcessExitedEvent;

            debugger.ThreadCreatedEvent += OnThreadCreatedEvent;
            debugger.ThreadExitedEvent  += OnThreadExitedEvent;

            debugger.TargetExitedEvent += OnTargetExitedEvent;
            guiManager.TargetEvent     += OnTargetEvent;

            // Not supported
            //guiManager.BreakpointHitHandler = BreakEventCheck;

            activeThread = process.MainThread;
            running      = true;

            Console.WriteLine("<< OnInitialized");
        }
		private void OnInitialized (MD.Debugger debugger, Process process)
		{
			Console.WriteLine (">> OnInitialized");
			
			this.process = process;
			this.debugger = debugger;
			
			mdbAdaptor.Process = process;
			
			guiManager = process.StartGUIManager ();

			//FIXME: conditionally add event handlers
			process.TargetOutputEvent += OnTargetOutput;
			
			debugger.ProcessCreatedEvent += OnProcessCreatedEvent;
			debugger.ProcessExecdEvent += OnProcessExecdEvent;
			debugger.ProcessExitedEvent += OnProcessExitedEvent;
			
			debugger.ThreadCreatedEvent += OnThreadCreatedEvent;
			debugger.ThreadExitedEvent += OnThreadExitedEvent;
			
			debugger.TargetExitedEvent += OnTargetExitedEvent;
			guiManager.TargetEvent += OnTargetEvent;

			// Not supported
			//guiManager.BreakpointHitHandler = BreakEventCheck;
			
			activeThread = process.MainThread;
			running = true;
			
			Console.WriteLine ("<< OnInitialized");
		}