6
6
import java .util .concurrent .ExecutionException ;
7
7
import java .util .concurrent .TimeUnit ;
8
8
9
- import org .eclipse .cdt .debug .gdbjtag .core .IGDBJtagConstants ;
10
9
import org .eclipse .cdt .dsf .concurrent .DsfRunnable ;
11
10
import org .eclipse .cdt .dsf .concurrent .IDsfStatusConstants ;
12
11
import org .eclipse .cdt .dsf .concurrent .ImmediateRequestMonitor ;
13
12
import org .eclipse .cdt .dsf .concurrent .RequestMonitor ;
14
13
import org .eclipse .cdt .dsf .concurrent .Sequence ;
15
- import org .eclipse .cdt .dsf .gdb .service .GDBBackend ;
16
14
import org .eclipse .cdt .dsf .gdb .service .command .GDBControl .InitializationShutdownStep ;
17
15
import org .eclipse .cdt .dsf .service .DsfSession ;
18
16
import org .eclipse .cdt .utils .spawner .ProcessFactory ;
25
23
import org .eclipse .debug .core .DebugException ;
26
24
import org .eclipse .debug .core .ILaunchConfiguration ;
27
25
28
- public class Backend extends GDBBackend {
26
+ public class Backend extends Backend0 {
29
27
30
28
private final ILaunchConfiguration fLaunchConfiguration ;
31
29
@@ -75,12 +73,12 @@ public Process getSemihostingProcess() {
75
73
return fSemihostingProcess ;
76
74
}
77
75
78
- protected IPath getGDBPath () {
79
- return Utils .getGDBPath (fLaunchConfiguration );
80
- }
76
+ // protected IPath getGDBPath() {
77
+ // return Utils.getGDBPath(fLaunchConfiguration);
78
+ // }
81
79
82
80
// do not rename!
83
- protected Process launchGDBProcess (String commandLine ) throws CoreException {
81
+ /* protected Process launchGDBProcess(String commandLine) throws CoreException {
84
82
Process proc = null;
85
83
try {
86
84
proc = ProcessFactory.getFactory().exec(commandLine,
@@ -93,6 +91,7 @@ protected Process launchGDBProcess(String commandLine) throws CoreException {
93
91
94
92
return proc;
95
93
}
94
+ */
96
95
97
96
protected Process launchSemihostingProcess (String host , int port )
98
97
throws CoreException {
@@ -289,11 +288,11 @@ protected IStatus run(IProgressMonitor monitor) {
289
288
return Status .OK_STATUS ;
290
289
}
291
290
292
- String commandLine = TabDebugger
293
- .getGdbServerCommandLine (fLaunchConfiguration );
291
+ String [] commandLineArray = TabDebugger
292
+ .getGdbServerCommandLineArray (fLaunchConfiguration );
294
293
295
294
try {
296
- fServerProcess = launchGDBProcess (commandLine );
295
+ fServerProcess = launchGDBProcess (commandLineArray );
297
296
// Need to do this on the executor for thread-safety
298
297
getExecutor ().submit (new DsfRunnable () {
299
298
@ Override
0 commit comments