Ejemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();

            outputView = new OutputView(this);

            registersView = new RegisterView(this);

            displayView = new DisplayView(this);
            controlView = new ControlView(this);

            callStackView  = new CallStackView(this);
            stackFrameView = new StackFrameView(this);

            statusView      = new StatusView(this);
            symbolView      = new SymbolView(this);
            watchView       = new WatchView(this);
            breakPointView  = new BreakpointView(this);
            instructionView = new InstructionView(this);
            methodView      = new MethodView(this);

            //scriptView = new ScriptView(this);

            sourceView     = new SourceView(this);
            sourceDataView = new SourceDataView(this);

            AppLocations.FindApplications();
            Options.EnableQemuGDB = true;
        }
Ejemplo n.º 2
0
        BreakpointView GetBreakpointViewInternal()
        {
            if (breakpointViewInternal == null)
            {
                breakpointViewInternal = new BreakpointView(new BindBreakpointJob.Factory(),
                                                            new BreakpointDeleteJob.Factory(),
                                                            GetDebugSessionContext(), GetJobQueue(),
                                                            taskContext);
            }

            return(breakpointViewInternal);
        }
Ejemplo n.º 3
0
        public MainForm()
        {
            InitializeComponent();

            outputView = new OutputView(this);

            registersView = new RegisterView(this);

            displayView = new DisplayView(this);
            controlView = new ControlView(this);
            traceView   = new TraceView(this);

            callStackView  = new CallStackView(this);
            stackFrameView = new StackFrameView(this);

            statusView           = new StatusView(this);
            symbolView           = new SymbolView(this);
            watchView            = new WatchView(this);
            breakPointView       = new BreakpointView(this);
            instructionView      = new InstructionView(this);
            methodView           = new MethodView(this);
            methodParametersView = new MethodParametersView(this);

            //scriptView = new ScriptView(this);

            sourceView = new SourceView(this);

            sourceDataView = new SourceDataView(this);              // only useful when debugging this tool

            launchView = new LaunchView(this);

            Settings = AppLocationsSettings.GetAppLocations();

            Settings.SetValue("Emulator.GDB", true);
            Settings.SetValue("Emulator.Serial", "TCPServer");
            Settings.SetValue("Emulator.Serial.Port", 1250);
            Settings.SetValue("Emulator.Display", false);

            GDBPort = 1234;

            AppDomain.CurrentDomain.DomainUnload       += (s, e) => { KillVMProcess(); };
            AppDomain.CurrentDomain.ProcessExit        += (s, e) => { KillVMProcess(); };
            AppDomain.CurrentDomain.UnhandledException += (s, e) => { KillVMProcess(); };
        }
        public void GenerateUI()
        {
            if (MCS != null)
            {
                foreach (var callback in MCS)
                {
                    Breakpoints.Add(new Breakpoint(Core, callback));
                }

                BreakpointView.ItemCount = Breakpoints.Count;
                BreakpointView.Refresh();
                UpdateBreakpointRemoveButton();
                UpdateStatsLabel();
            }
            else
            {
                this.Enabled = false;
                ParentDebugger.DisableBreakpointBox();
            }
        }
Ejemplo n.º 5
0
        public void GenerateUI()
        {
            if (Mcs != null)
            {
                foreach (var callback in Mcs)
                {
                    _breakpoints.Add(new Breakpoint(Core, callback));
                }

                BreakpointView.VirtualListSize = _breakpoints.Count;
                BreakpointView.Refresh();
                UpdateBreakpointRemoveButton();
                UpdateStatsLabel();
            }
            else
            {
                Enabled = false;
                ParentDebugger.DisableBreakpointBox();
            }
        }