Esempio n. 1
0
 // UI thread
 public ModuleListener(HexBufferFileServiceFactory hexBufferFileServiceFactory, IHexBufferInfo hexBufferInfo, UIDispatcher uiDispatcher)
 {
     uiDispatcher.VerifyAccess();
     this.hexBufferInfo   = hexBufferInfo;
     this.uiDispatcher    = uiDispatcher;
     runtimes             = new List <DbgRuntime>();
     moduleReferences     = new Dictionary <HexPosition, int>();
     addedModules         = new HashSet <DbgModule>();
     hexBufferFileService = hexBufferFileServiceFactory.Create(hexBufferInfo.Buffer);
     hexBufferInfo.UnderlyingProcessChanged += HexBufferInfo_UnderlyingProcessChanged;
     hexBufferInfo.Buffer.Disposed          += Buffer_Disposed;
     OnProcessChanged_UI();
 }
Esempio n. 2
0
        public MemoryContent(IWpfCommandService wpfCommandService, IMemoryVM memoryVM, ProcessHexBufferProvider processHexBufferProvider, HexEditorGroupFactoryService hexEditorGroupFactoryService)
        {
            this.memoryVM = memoryVM;
            hexBufferInfo = processHexBufferProvider.CreateBuffer();
            hexBufferInfo.UnderlyingStreamChanged += HexBufferInfo_UnderlyingStreamChanged;

            hexViewHost               = hexEditorGroupFactoryService.Create(hexBufferInfo.Buffer, PredefinedHexViewRoles.HexEditorGroup, PredefinedHexViewRoles.HexEditorGroupDebuggerMemory, new Guid(MenuConstants.GUIDOBJ_DEBUGGER_MEMORY_HEXVIEW_GUID));
            memoryControl             = new MemoryControl(hexViewHost.HostControl);
            memoryControl.DataContext = memoryVM;

            wpfCommandService.Add(ControlConstants.GUID_DEBUGGER_MEMORY_CONTROL, memoryControl);
            wpfCommandService.Add(ControlConstants.GUID_DEBUGGER_MEMORY_WPFHEXVIEWHOST, hexViewHost.HostControl);
        }
Esempio n. 3
0
 public HexBufferInfoCreatedEventArgs(IHexBufferInfo hexBufferInfo) =>