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 170488
Collapse All | Expand All

(-)a/cnd.debugger.common2/src/org/netbeans/modules/cnd/debugger/common2/utils/Executor.java (+2 lines)
Lines 98-103 Link Here
98
    public abstract boolean isAlive();
98
    public abstract boolean isAlive();
99
99
100
    public abstract void terminate() throws IOException;
100
    public abstract void terminate() throws IOException;
101
    
102
    public abstract void interrupt();
101
103
102
    public abstract void interrupt(int pid) throws IOException;
104
    public abstract void interrupt(int pid) throws IOException;
103
105
(-)a/cnd.debugger.common2/src/org/netbeans/modules/cnd/debugger/common2/utils/ExecutorCND.java (+9 lines)
Lines 126-131 Link Here
126
            }
126
            }
127
        }
127
        }
128
    }
128
    }
129
    
130
    @Override
131
    public void interrupt() {
132
	try {
133
            CommonTasksSupport.sendSignal(exEnv, pid, Signal.SIGINT, null).get();
134
        } catch (InterruptedException ex) {
135
        } catch (ExecutionException ex) {
136
        }
137
    }
129
138
130
    public void interruptGroup() throws IOException {
139
    public void interruptGroup() throws IOException {
131
	try {
140
	try {
(-)a/cnd.debugger.gdb2/src/org/netbeans/modules/cnd/debugger/gdb2/Gdb.java (-1 / +1 lines)
Lines 696-702 Link Here
696
                signalled = true;
696
                signalled = true;
697
                this.silentStop = silentStop;
697
                this.silentStop = silentStop;
698
                if (interruptGdb) {
698
                if (interruptGdb) {
699
                    executor.interruptGroup();
699
                    executor.interrupt();
700
                } else {
700
                } else {
701
                    Executor signaller = Executor.getDefault("signaller", factory.host, 0); // NOI18N
701
                    Executor signaller = Executor.getDefault("signaller", factory.host, 0); // NOI18N
702
                    signaller.interrupt(pid);
702
                    signaller.interrupt(pid);

Return to bug 170488