all repos — mgba @ 201da5adacddb6db11e023a23247e94e774260d5

mGBA Game Boy Advance Emulator

Debugger: Add mDebuggerRunFrame convenience function
Vicki Pfau vi@endrift.com
Sun, 11 Jun 2017 12:04:42 -0700
commit

201da5adacddb6db11e023a23247e94e774260d5

parent

70a6622a5c65c7a5636126615704436f12ecb797

3 files changed, 9 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -128,6 +128,7 @@ - Qt: Relax hard dependency on OpenGL

- GB Video: Improved video timings - Core: List memory segments in the core - Core: Move savestate creation time to extdata + - Debugger: Add mDebuggerRunFrame convenience function 0.5.2: (2016-12-31) Bugfixes:
M include/mgba/internal/debugger/debugger.hinclude/mgba/internal/debugger/debugger.h

@@ -113,6 +113,7 @@

struct mDebugger* mDebuggerCreate(enum mDebuggerType type, struct mCore*); void mDebuggerAttach(struct mDebugger*, struct mCore*); void mDebuggerRun(struct mDebugger*); +void mDebuggerRunFrame(struct mDebugger*); void mDebuggerEnter(struct mDebugger*, enum mDebuggerEntryReason, struct mDebuggerEntryInfo*); CXX_GUARD_END
M src/debugger/debugger.csrc/debugger/debugger.c

@@ -97,6 +97,13 @@ return;

} } +void mDebuggerRunFrame(struct mDebugger* debugger) { + int32_t frame = debugger->core->frameCounter(debugger->core); + do { + mDebuggerRun(debugger); + } while (debugger->core->frameCounter(debugger->core) == frame); +} + void mDebuggerEnter(struct mDebugger* debugger, enum mDebuggerEntryReason reason, struct mDebuggerEntryInfo* info) { debugger->state = DEBUGGER_PAUSED; if (debugger->platform->entered) {