all repos — mgba @ 8b805b39099eb7c1f41be9401d34ae6c6aa6f420

mGBA Game Boy Advance Emulator

Debugger: Make attaching a backend idempotent
Vicki Pfau vi@endrift.com
Fri, 21 Apr 2017 16:20:52 -0700
commit

8b805b39099eb7c1f41be9401d34ae6c6aa6f420

parent

a159e377932c8def76c2d77495b94f70083defcd

2 files changed, 4 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.csrc/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); }