This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 253433
Collapse All | Expand All

(-)a/cnd.debugger.common2/src/org/netbeans/modules/cnd/debugger/common2/debugger/io/DebuggerExternalTerminal.java (-1 / +5 lines)
Lines 91-97 Link Here
91
        if (ExternalTerminalProvider.getSupportedTerminalIDs().contains(termBaseName)) {
91
        if (ExternalTerminalProvider.getSupportedTerminalIDs().contains(termBaseName)) {
92
            NativeProcessBuilder npb = NativeProcessBuilder.newLocalProcessBuilder();
92
            NativeProcessBuilder npb = NativeProcessBuilder.newLocalProcessBuilder();
93
            ExternalTerminal terminal = ExternalTerminalProvider.getTerminal(exEnv, termBaseName);
93
            ExternalTerminal terminal = ExternalTerminalProvider.getTerminal(exEnv, termBaseName);
94
            terminal = terminal.setTitle(Catalog.get("Title_Debugger_External_Terminal")); // NOI18N
94
            if (terminal != null) {
95
                // In the case then "terminal" is null,
96
                // null will be passed to useExternalTerminal and internal terminal will be called.
97
                terminal = terminal.setTitle(Catalog.get("Title_Debugger_External_Terminal")); // NOI18N
98
            }
95
            npb.useExternalTerminal(terminal);
99
            npb.useExternalTerminal(terminal);
96
            npb.setExecutable(gdbHelperScript.getAbsolutePath());
100
            npb.setExecutable(gdbHelperScript.getAbsolutePath());
97
            npb.redirectError();
101
            npb.redirectError();

Return to bug 253433