예제 #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            Text = "MOSA GDB Debugger v" + CompilerVersion.VersionString;

            dockPanel.SuspendLayout(true);
            dockPanel.DockTopPortion = 75;

            controlView.Show(dockPanel, DockState.DockTop);
            statusView.Show(controlView.PanelPane, DockAlignment.Right, 0.50);

            breakPointView.Show(dockPanel, DockState.DockBottom);
            watchView.Show(breakPointView.PanelPane, DockAlignment.Right, 0.50);

            displayView.Show(dockPanel, DockState.Document);
            outputView.Show(dockPanel, DockState.Document);

            //scriptView.Show(dockPanel, DockState.Document);
            registersView.Show(dockPanel, DockState.DockRight);
            stackFrameView.Show(registersView.Pane, DockAlignment.Bottom, 0.5);

            sourceView.Show(dockPanel, DockState.Document);
            sourceDataView.Show(dockPanel, DockState.Document);

            //stackFrameView.Show(dockPanel, DockState.DockRight);

            var memoryView = new MemoryView(this);

            memoryView.Show(dockPanel, DockState.Document);
            symbolView.Show(dockPanel, DockState.Document);

            instructionView.Show(symbolView.PanelPane, DockAlignment.Right, 0.35);
            methodView.Show(instructionView.PanelPane, instructionView);
            callStackView.Show(instructionView.PanelPane, DockAlignment.Bottom, 0.25);

            registersView.Show();

            dockPanel.ResumeLayout(true, true);

            CalculateVMHash();

            LauncherOptions.SerialConnectionOption = SerialConnectionOption.TCPServer;
            LauncherOptions.SerialConnectionPort   = 1250;

            if (LauncherOptions.ImageFile != null)
            {
                VMProcess = StartQEMU();
            }
            LoadDebugFile();
            if (LauncherOptions.AutoStart)
            {
                System.Threading.Thread.Sleep(3000);
                Connect();
            }

            LoadBreakPoints();
            LoadWatches();
        }
예제 #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            Text = "MOSA GDB Debugger v" + CompilerVersion.VersionString;

            dockPanel.SuspendLayout(true);
            dockPanel.Theme          = new VS2015DarkTheme();
            dockPanel.DockTopPortion = 88;

            controlView.Show(dockPanel, DockState.DockTop);
            statusView.Show(controlView.PanelPane, DockAlignment.Right, 0.50);

            breakPointView.Show(dockPanel, DockState.DockBottom);
            watchView.Show(breakPointView.PanelPane, DockAlignment.Right, 0.50);

            launchView.Show(dockPanel, DockState.Document);
            displayView.Show(dockPanel, DockState.Document);
            traceView.Show(dockPanel, DockState.Document);
            outputView.Show(dockPanel, DockState.Document);

            //scriptView.Show(dockPanel, DockState.Document);
            registersView.Show(dockPanel, DockState.DockRight);
            stackFrameView.Show(registersView.Pane, DockAlignment.Bottom, 0.5);

            sourceView.Show(dockPanel, DockState.Document);

            sourceDataView.Show(dockPanel, DockState.Document);

            var memoryView = new MemoryView(this);

            memoryView.Show(dockPanel, DockState.Document);

            symbolView.Show(dockPanel, DockState.Document);

            methodParametersView.Show(symbolView.PanelPane, DockAlignment.Right, 0.35);

            instructionView.Show(methodParametersView.PanelPane, DockAlignment.Bottom, 0.85);
            methodView.Show(instructionView.PanelPane, instructionView);

            callStackView.Show(instructionView.PanelPane, DockAlignment.Bottom, 0.25);

            registersView.Show();
            launchView.Show();

            dockPanel.ResumeLayout(true, true);

            if (ImageFile != null)
            {
                LaunchImage();
            }
        }
예제 #3
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            dockPanel.SuspendLayout(true);
            dockPanel.DockTopPortion = 75;

            controlView.Show(dockPanel, DockState.DockTop);
            statusView.Show(controlView.PanelPane, DockAlignment.Right, 0.50);

            breakPointView.Show(dockPanel, DockState.DockBottom);
            watchView.Show(breakPointView.PanelPane, DockAlignment.Right, 0.50);

            displayView.Show(dockPanel, DockState.Document);
            outputView.Show(dockPanel, DockState.Document);

            //scriptView.Show(dockPanel, DockState.Document);
            registersView.Show(dockPanel, DockState.DockRight);

            //flagView.Show(dockPanel, DockState.DockRight);
            //stackView.Show(dockPanel, DockState.DockRight);
            stackFrameView.Show(dockPanel, DockState.DockRight);

            var memoryView = new MemoryView(this);

            memoryView.Show(dockPanel, DockState.Document);
            symbolView.Show(dockPanel, DockState.Document);

            instructionView.Show(symbolView.PanelPane, DockAlignment.Right, 0.35);
            methodView.Show(instructionView.PanelPane, instructionView);
            callStackView.Show(instructionView.PanelPane, DockAlignment.Bottom, 0.25);

            registersView.Show();

            dockPanel.ResumeLayout(true, true);

            if (Options.AutoConnect)
            {
                Connect();
            }

            if (Options.DebugInfoFile != null)
            {
                LoadDebugData.LoadDebugInfo(Options.DebugInfoFile, DebugSource);
            }
        }