1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fix for disabling and then re-enabling memory breakpoints

This commit is contained in:
Brian Fiete 2020-05-19 10:49:41 -07:00
parent 96b22f5760
commit cbf4ade673
2 changed files with 17 additions and 6 deletions

View file

@ -135,20 +135,31 @@ namespace IDE.Debugger
Breakpoint_SetThreadId(mNativeBreakpoint, mThreadId);
}
public void CreateNative(bool bindNow = true)
public void CreateNative(bool bindNow = true, bool force = false)
{
//var debugger = IDEApp.sApp.mDebugger;
if (mNativeBreakpoint == null)
{
if (mIsMemoryBreakpoint)
{
// Wait for a 'rehup'
//mNativeBreakpoint = Debugger_CreateMemoryBreakpoint((void*)mMemoryAddress, mByteCount);
if (force)
mNativeBreakpoint = Debugger_CreateMemoryBreakpoint(mMemoryAddress, mByteCount);
else
{
// Wait for a 'rehup'
}
}
else if (mAddressRequested)
{
// Wait for a 'rehup'
//mNativeBreakpoint = Debugger_CreateAddressBreakpoint(mMemoryAddress);
if (force)
{
//mNativeBreakpoint = Debugger_CreateAddressBreakpoint(mMemoryAddress);
}
else
{
// Wait for a 'rehup'
}
}
else if (mFileName != null)
{

View file

@ -714,7 +714,7 @@ namespace IDE.Debugger
else
{
if (mIsRunning)
breakpoint.CreateNative();
breakpoint.CreateNative(true, true);
}
mBreakpointsChangedDelegate();
}