mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-14 14:40:52 +00:00
If we already instantiated a Debugger, reuse it.
This commit is contained in:
parent
b1533c4a02
commit
ec805871c3
2 changed files with 19 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2021-07-09 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Framework/PCProjectLauncher.m
|
||||
If we already instantiated a Debugger, reuse it.
|
||||
|
||||
2021-07-06 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Modules/Debuggers/ProjectCenter/PCDebugger.h
|
||||
|
|
|
@ -293,12 +293,20 @@ enum {
|
|||
|
||||
|
||||
// Debugger
|
||||
debugger = [bundleManager objectForBundleType: @"debugger"
|
||||
protocol: @protocol(CodeDebugger)
|
||||
fileName: [executablePath stringByDeletingLastPathComponent]];
|
||||
[debugger debugExecutableAtPath: executablePath
|
||||
withDebugger: gdbPath];
|
||||
if (!debugger)
|
||||
if (nil == debugger)
|
||||
{
|
||||
debugger = [bundleManager objectForBundleType: @"debugger"
|
||||
protocol: @protocol(CodeDebugger)
|
||||
fileName: [executablePath stringByDeletingLastPathComponent]];
|
||||
[debugger debugExecutableAtPath: executablePath
|
||||
withDebugger: gdbPath];
|
||||
}
|
||||
else
|
||||
{
|
||||
[debugger show];
|
||||
}
|
||||
|
||||
if (nil == debugger)
|
||||
NSLog(@"No debugger module found");
|
||||
|
||||
// turn debug button off...
|
||||
|
|
Loading…
Reference in a new issue