private AddBreakpointDialog CreateAddBreakpointDialog(BreakpointOperation op, MemoryCallbackType?type = null, uint?address = null) { var operation = (AddBreakpointDialog.BreakpointOperation)op; var b = new AddBreakpointDialog(operation) { // TODO: don't use Global.Emulator! Pass in an IMemoryDomains implementation from the parent tool MaxAddressSize = Global.Emulator.AsMemoryDomains().SystemBus.Size - 1 }; if (type != null) { b.BreakType = (MemoryCallbackType)type; } if (address != null) { b.Address = (uint)address; } if (!MCS.ExecuteCallbacksAvailable) { b.DisableExecuteOption(); } return(b); }
private AddBreakpointDialog CreateAddBreakpointDialog(BreakpointOperation op, MemoryCallbackType?type = null, uint?address = null, uint?mask = null) { var operation = (AddBreakpointDialog.BreakpointOperation)op; var b = new AddBreakpointDialog(operation) { MaxAddressSize = MemoryDomains.SystemBus.Size - 1 }; if (type != null) { b.BreakType = (MemoryCallbackType)type; } if (address != null) { b.Address = (uint)address; } if (mask != null) { b.AddressMask = (uint)mask; } if (!MCS.ExecuteCallbacksAvailable) { b.DisableExecuteOption(); } return(b); }
private void AddBreakpointButton_Click(object sender, EventArgs e) { var b = new AddBreakpointDialog { // TODO: don't use Global.Emulator! Pass in an IMemoryDomains implementation from the parent tool MaxAddressSize = Global.Emulator.AsMemoryDomains().SystemBus.Size - 1 }; if (!MCS.ExecuteCallbacksAvailable) { b.DisableExecuteOption(); } if (b.ShowHawkDialog() == DialogResult.OK) { Breakpoints.Add(Core, b.Address, b.BreakType); } BreakpointView.ItemCount = Breakpoints.Count; UpdateBreakpointRemoveButton(); UpdateStatsLabel(); }
private AddBreakpointDialog CreateAddBreakpointDialog(BreakpointOperation op, MemoryCallbackType? type = null, uint? address = null) { var operation = (AddBreakpointDialog.BreakpointOperation)op; var b = new AddBreakpointDialog(operation) { // TODO: don't use Global.Emulator! Pass in an IMemoryDomains implementation from the parent tool MaxAddressSize = Global.Emulator.AsMemoryDomains().SystemBus.Size - 1 }; if (type != null) { b.BreakType = (MemoryCallbackType)type; } if (address != null) { b.Address = (uint)address; } if (!MCS.ExecuteCallbacksAvailable) { b.DisableExecuteOption(); } return b; }