Ignore break conditions while stepping frames.

This commit is contained in:
Christian Speckner 2018-07-13 00:16:53 +02:00
parent c72febe188
commit f3f966d12c
1 changed files with 5 additions and 1 deletions

View File

@ -54,6 +54,7 @@
#include "TIA.hxx"
#include "Debugger.hxx"
#include "DispatchResult.hxx"
Debugger* Debugger::myStaticDebugger = nullptr;
@ -511,9 +512,12 @@ void Debugger::nextFrame(int frames)
saveOldState();
unlockSystem();
DispatchResult dispatchResult;
while(frames)
{
myOSystem.console().tia().update(myOSystem.console().emulationTiming().maxCyclesPerTimeslice());
do
myOSystem.console().tia().update(dispatchResult, myOSystem.console().emulationTiming().maxCyclesPerTimeslice());
while (dispatchResult.getStatus() == DispatchResult::Status::debugger);
--frames;
}
lockSystem();