mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-13 05:44:11 +02:00
Fix for disabling and then re-enabling memory breakpoints
This commit is contained in:
parent
96b22f5760
commit
cbf4ade673
2 changed files with 17 additions and 6 deletions
|
@ -135,21 +135,32 @@ namespace IDE.Debugger
|
||||||
Breakpoint_SetThreadId(mNativeBreakpoint, mThreadId);
|
Breakpoint_SetThreadId(mNativeBreakpoint, mThreadId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CreateNative(bool bindNow = true)
|
public void CreateNative(bool bindNow = true, bool force = false)
|
||||||
{
|
{
|
||||||
//var debugger = IDEApp.sApp.mDebugger;
|
//var debugger = IDEApp.sApp.mDebugger;
|
||||||
if (mNativeBreakpoint == null)
|
if (mNativeBreakpoint == null)
|
||||||
{
|
{
|
||||||
if (mIsMemoryBreakpoint)
|
if (mIsMemoryBreakpoint)
|
||||||
|
{
|
||||||
|
if (force)
|
||||||
|
mNativeBreakpoint = Debugger_CreateMemoryBreakpoint(mMemoryAddress, mByteCount);
|
||||||
|
else
|
||||||
{
|
{
|
||||||
// Wait for a 'rehup'
|
// Wait for a 'rehup'
|
||||||
//mNativeBreakpoint = Debugger_CreateMemoryBreakpoint((void*)mMemoryAddress, mByteCount);
|
}
|
||||||
}
|
}
|
||||||
else if (mAddressRequested)
|
else if (mAddressRequested)
|
||||||
{
|
{
|
||||||
// Wait for a 'rehup'
|
if (force)
|
||||||
|
{
|
||||||
//mNativeBreakpoint = Debugger_CreateAddressBreakpoint(mMemoryAddress);
|
//mNativeBreakpoint = Debugger_CreateAddressBreakpoint(mMemoryAddress);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Wait for a 'rehup'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
else if (mFileName != null)
|
else if (mFileName != null)
|
||||||
{
|
{
|
||||||
mNativeBreakpoint = Debugger_CreateBreakpoint(mFileName, mLineNum, mColumn, mInstrOffset);
|
mNativeBreakpoint = Debugger_CreateBreakpoint(mFileName, mLineNum, mColumn, mInstrOffset);
|
||||||
|
|
|
@ -714,7 +714,7 @@ namespace IDE.Debugger
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (mIsRunning)
|
if (mIsRunning)
|
||||||
breakpoint.CreateNative();
|
breakpoint.CreateNative(true, true);
|
||||||
}
|
}
|
||||||
mBreakpointsChangedDelegate();
|
mBreakpointsChangedDelegate();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue