Debugger: Close trace log when done tracing
Vicki Pfau vi@endrift.com
Mon, 09 Nov 2020 00:08:36 -0800
2 files changed,
7 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -48,6 +48,7 @@ - All: Improve export headers (fixes mgba.io/i/1738)
- CMake: Fix build with downstream minizip that exports incompatible symbols - Core: Ensure ELF regions can be written before trying - Debugger: Don't skip undefined instructions when debugger attached + - Debugger: Close trace log when done tracing - FFmpeg: Fix some small memory leaks - FFmpeg: Fix encoding of time base - Qt: Force OpenGL paint engine creation thread (fixes mgba.io/i/1642)
M
src/debugger/cli-debugger.c
→
src/debugger/cli-debugger.c
@@ -752,7 +752,12 @@ }
if (debugger->traceRemaining > 0) { --debugger->traceRemaining; } - return debugger->traceRemaining != 0; + if (!debugger->traceRemaining) { + debugger->traceVf->close(debugger->traceVf); + debugger->traceVf = NULL; + return false; + } + return true; } static void _printStatus(struct CLIDebugger* debugger, struct CLIDebugVector* dv) {