Debugger: Make attaching a backend idempotent
Vicki Pfau vi@endrift.com
Fri, 21 Apr 2017 16:20:52 -0700
2 files changed,
4 insertions(+),
0 deletions(-)
M
CHANGES
→
CHANGES
@@ -94,6 +94,7 @@ - Core: Restore sleep callback
- Qt: Add .gb/.gbc files to the extension list in Info.plist - Feature: Make -l option explicit - Core: Ability to enumerate and modify video and audio channels + - Debugger: Make attaching a backend idempotent 0.5.2: (2016-12-31) Bugfixes:
M
src/debugger/cli-debugger.c
→
src/debugger/cli-debugger.c
@@ -751,6 +751,9 @@ system->p = debugger;
} void CLIDebuggerAttachBackend(struct CLIDebugger* debugger, struct CLIDebuggerBackend* backend) { + if (debugger->backend == backend) { + return; + } if (debugger->backend && debugger->backend->deinit) { debugger->backend->deinit(debugger->backend); }