mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-05-28 17:41:37 +00:00
Breakpoints: some extra tweaks.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
7971cf6a1d
commit
e29fe0deb1
|
@ -83,7 +83,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
static DebugBreakOnDMA g_DebugBreakOnDMA[NUM_BREAK_ON_DMA];
|
||||
static DebugBreakOnDMA g_DebugBreakOnDMAIO;
|
||||
|
||||
static int g_bDebugBreakpointHit = 0; // See: BreakpointHit_t
|
||||
int g_bDebugBreakpointHit = 0; // See: BreakpointHit_t
|
||||
|
||||
int g_nBreakpoints = 0;
|
||||
Breakpoint_t g_aBreakpoints[ MAX_BREAKPOINTS ];
|
||||
|
@ -1764,18 +1764,13 @@ Update_t CmdBreakpointAddVideo(int nArgs)
|
|||
}
|
||||
|
||||
//===========================================================================
|
||||
void _BWZ_Clear( Breakpoint_t * aBreakWatchZero, int iSlot )
|
||||
{
|
||||
aBreakWatchZero[ iSlot ].bSet = false;
|
||||
aBreakWatchZero[ iSlot ].bEnabled = false;
|
||||
aBreakWatchZero[ iSlot ].nLength = 0;
|
||||
}
|
||||
|
||||
void _BWZ_RemoveOne( Breakpoint_t *aBreakWatchZero, const int iSlot, int & nTotal )
|
||||
{
|
||||
if (aBreakWatchZero[iSlot].bSet)
|
||||
{
|
||||
_BWZ_Clear( aBreakWatchZero, iSlot );
|
||||
aBreakWatchZero[ iSlot ].bSet = false;
|
||||
aBreakWatchZero[ iSlot ].bEnabled = false;
|
||||
aBreakWatchZero[ iSlot ].nLength = 0;
|
||||
nTotal--;
|
||||
}
|
||||
}
|
||||
|
@ -8395,7 +8390,7 @@ void DebugBegin ()
|
|||
void DebugExitDebugger ()
|
||||
{
|
||||
ClearTempBreakpoints(); // make sure we remove dead breakpoints before checking
|
||||
// should this check if breakpoints are enabled?
|
||||
// should this check if breakpoints are actually enabled?
|
||||
if (g_nBreakpoints == 0 && g_hTraceFile == NULL)
|
||||
{
|
||||
DebugEnd();
|
||||
|
|
|
@ -46,6 +46,8 @@
|
|||
, BP_HIT_VIDEO_POS = (1 << 12)
|
||||
};
|
||||
|
||||
extern int g_bDebugBreakpointHit;
|
||||
|
||||
extern int g_nBreakpoints;
|
||||
extern Breakpoint_t g_aBreakpoints[ MAX_BREAKPOINTS ];
|
||||
|
||||
|
|
|
@ -499,7 +499,7 @@ Update_t CmdHelpSpecific (int nArgs)
|
|||
switch ( iParam )
|
||||
{
|
||||
case PARAM_CAT_BOOKMARKS : iCmdBegin = CMD_BOOKMARK ; iCmdEnd = CMD_BOOKMARK_SAVE ; break;
|
||||
case PARAM_CAT_BREAKPOINTS: iCmdBegin = CMD_BREAK_INVALID ; iCmdEnd = CMD_BREAKPOINT_SAVE ; break;
|
||||
case PARAM_CAT_BREAKPOINTS: iCmdBegin = CMD_BREAK_INVALID ; iCmdEnd = CMD_BREAKPOINT_CHANGE ; break;
|
||||
case PARAM_CAT_CONFIG : iCmdBegin = CMD_BENCHMARK ; iCmdEnd = CMD_CONFIG_SET_DEBUG_DIR; break;
|
||||
case PARAM_CAT_CPU : iCmdBegin = CMD_ASSEMBLE ; iCmdEnd = CMD_UNASSEMBLE ; break;
|
||||
case PARAM_CAT_FLAGS :
|
||||
|
|
Loading…
Reference in New Issue
Block a user