Esempio n. 1
0
 private void LabelManager_OnLabelUpdated(object sender, EventArgs e)
 {
     DebugWorkspaceManager.SaveWorkspace();
     ctrlLabelList.UpdateLabelList();
     ctrlFunctionList.UpdateFunctionList(true);
     UpdateDebugger(false, false);
 }
Esempio n. 2
0
        protected override void OnFormClosing(FormClosingEventArgs e)
        {
            tmrCdlRatios.Stop();

            LabelManager.OnLabelUpdated          -= LabelManager_OnLabelUpdated;
            BreakpointManager.BreakpointsChanged -= BreakpointManager_BreakpointsChanged;
            ctrlConsoleStatus.OnStateChanged     -= ctrlConsoleStatus_OnStateChanged;
            ctrlProfiler.OnFunctionSelected      -= ctrlProfiler_OnFunctionSelected;

            if (_notifListener != null)
            {
                _notifListener.Dispose();
                _notifListener = null;
            }

            InteropEmu.DebugSetFlags(0);
            InteropEmu.SetFlag(EmulationFlags.DebuggerWindowEnabled, false);
            InteropEmu.DebugSetBreakpoints(new InteropBreakpoint[0], 0);
            InteropEmu.DebugRun();

            ConfigManager.Config.DebugInfo.WindowWidth    = this.WindowState == FormWindowState.Maximized ? this.RestoreBounds.Width : this.Width;
            ConfigManager.Config.DebugInfo.WindowHeight   = this.WindowState == FormWindowState.Maximized ? this.RestoreBounds.Height : this.Height;
            ConfigManager.Config.DebugInfo.TopPanelHeight = this.splitContainer.GetSplitterDistance();
            ConfigManager.Config.DebugInfo.LeftPanelWidth = this.ctrlSplitContainerTop.GetSplitterDistance();
            ConfigManager.ApplyChanges();

            DebugWorkspaceManager.SaveWorkspace();
        }
Esempio n. 3
0
 protected override void OnFormClosing(FormClosingEventArgs e)
 {
     base.OnFormClosing(e);
     UpdateConfig();
     ConfigManager.Config.DebugInfo.MemoryViewerSize = this.WindowState == FormWindowState.Maximized ? this.RestoreBounds.Size : this.Size;
     ConfigManager.ApplyChanges();
     DebugWorkspaceManager.SaveWorkspace();
 }
Esempio n. 4
0
        private void UpdateWorkspace()
        {
            DebugWorkspaceManager.SaveWorkspace();
            DebugWorkspace workspace = DebugWorkspaceManager.GetWorkspace();

            ctrlLabelList.UpdateLabelList();
            ctrlFunctionList.UpdateFunctionList(true);
            ctrlBreakpoints.RefreshList();
        }
Esempio n. 5
0
 public static void CleanupDebugger()
 {
     if (_openedWindows.Count == 0)
     {
         //All windows have been closed, disable debugger
         DebugWorkspaceManager.SaveWorkspace();
         DebugWorkspaceManager.Clear();
         DebugApi.ReleaseDebugger();
     }
 }
Esempio n. 6
0
        protected override void OnFormClosing(FormClosingEventArgs e)
        {
            base.OnFormClosing(e);
            UpdateConfig();
            ConfigManager.Config.DebugInfo.RamFontFamily        = ctrlHexViewer.BaseFont.FontFamily.Name;
            ConfigManager.Config.DebugInfo.RamFontStyle         = ctrlHexViewer.BaseFont.Style;
            ConfigManager.Config.DebugInfo.RamFontSize          = ctrlHexViewer.BaseFont.Size;
            ConfigManager.Config.DebugInfo.MemoryViewerSize     = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Size : this.Size;
            ConfigManager.Config.DebugInfo.MemoryViewerLocation = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Location : this.Location;
            ConfigManager.Config.DebugInfo.RamMemoryType        = cboMemoryType.GetEnumValue <DebugMemoryType>();
            ConfigManager.ApplyChanges();
            DebugWorkspaceManager.SaveWorkspace();

            if (this._notifListener != null)
            {
                this._notifListener.Dispose();
                this._notifListener = null;
            }

            _formClosed = true;
        }