mirror of https://github.com/mgba-emu/mgba.git
Debugger: Add mDebuggerRunFrame convenience function
This commit is contained in:
parent
70a6622a5c
commit
201da5adac
1
CHANGES
1
CHANGES
|
@ -128,6 +128,7 @@ Misc:
|
||||||
- GB Video: Improved video timings
|
- GB Video: Improved video timings
|
||||||
- Core: List memory segments in the core
|
- Core: List memory segments in the core
|
||||||
- Core: Move savestate creation time to extdata
|
- Core: Move savestate creation time to extdata
|
||||||
|
- Debugger: Add mDebuggerRunFrame convenience function
|
||||||
|
|
||||||
0.5.2: (2016-12-31)
|
0.5.2: (2016-12-31)
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
|
|
@ -113,6 +113,7 @@ struct mDebugger {
|
||||||
struct mDebugger* mDebuggerCreate(enum mDebuggerType type, struct mCore*);
|
struct mDebugger* mDebuggerCreate(enum mDebuggerType type, struct mCore*);
|
||||||
void mDebuggerAttach(struct mDebugger*, struct mCore*);
|
void mDebuggerAttach(struct mDebugger*, struct mCore*);
|
||||||
void mDebuggerRun(struct mDebugger*);
|
void mDebuggerRun(struct mDebugger*);
|
||||||
|
void mDebuggerRunFrame(struct mDebugger*);
|
||||||
void mDebuggerEnter(struct mDebugger*, enum mDebuggerEntryReason, struct mDebuggerEntryInfo*);
|
void mDebuggerEnter(struct mDebugger*, enum mDebuggerEntryReason, struct mDebuggerEntryInfo*);
|
||||||
|
|
||||||
CXX_GUARD_END
|
CXX_GUARD_END
|
||||||
|
|
|
@ -97,6 +97,13 @@ void mDebuggerRun(struct mDebugger* debugger) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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) {
|
void mDebuggerEnter(struct mDebugger* debugger, enum mDebuggerEntryReason reason, struct mDebuggerEntryInfo* info) {
|
||||||
debugger->state = DEBUGGER_PAUSED;
|
debugger->state = DEBUGGER_PAUSED;
|
||||||
if (debugger->platform->entered) {
|
if (debugger->platform->entered) {
|
||||||
|
|
Loading…
Reference in New Issue