mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-08 16:29:39 +00:00
Add global breakpoint so we can display last breakpoint triggered information
This commit is contained in:
parent
9bf2bcda4e
commit
b06ae52f02
|
@ -85,7 +85,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
static DebugBreakOnDMA g_DebugBreakOnDMA[NUM_BREAK_ON_DMA];
|
||||
static DebugBreakOnDMA g_DebugBreakOnDMAIO;
|
||||
|
||||
int g_bDebugBreakpointHit = 0; // See: BreakpointHit_t
|
||||
int g_bDebugBreakpointHit = 0; // See: BreakpointHit_t
|
||||
static Breakpoint_t*g_pDebugBreakpointHit = nullptr; // NOTE: Only valid for BP_HIT_REG, see: CheckBreakpointsReg()
|
||||
|
||||
int g_nBreakpoints = 0;
|
||||
Breakpoint_t g_aBreakpoints[ MAX_BREAKPOINTS ];
|
||||
|
@ -1311,6 +1312,8 @@ int CheckBreakpointsIO ()
|
|||
//===========================================================================
|
||||
int CheckBreakpointsReg ()
|
||||
{
|
||||
g_pDebugBreakpointHit = nullptr;
|
||||
|
||||
int iAnyBreakpointHit = 0;
|
||||
|
||||
for (int iBreakpoint = 0; iBreakpoint < MAX_BREAKPOINTS; iBreakpoint++)
|
||||
|
@ -1349,6 +1352,7 @@ int CheckBreakpointsReg ()
|
|||
if (bBreakpointHit)
|
||||
{
|
||||
iAnyBreakpointHit = hitBreakpoint(pBP, BP_HIT_REG);
|
||||
g_pDebugBreakpointHit = pBP; // Save breakpoint so we can display which register triggered the breakpoint.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user