Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 252283 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/dd/mi/service/command/commands/MITargetSelect.java (-2 / +18 lines)
Lines 18-29 Link Here
18
 */
18
 */
19
public class MITargetSelect extends MICommand<MIInfo> {
19
public class MITargetSelect extends MICommand<MIInfo> {
20
20
21
	@Deprecated
21
	public MITargetSelect(IDMContext ctx, String host, String port) {
22
	public MITargetSelect(IDMContext ctx, String host, String port) {
22
		super(ctx, "-target-select extended-remote", new String[] {host + ":" + port}); //$NON-NLS-1$ //$NON-NLS-2$
23
		this(ctx, host, port, true);
23
	}
24
	}
24
	
25
	
26
	@Deprecated	
25
	public MITargetSelect(IDMContext ctx, String serialDevice) {
27
	public MITargetSelect(IDMContext ctx, String serialDevice) {
26
		super(ctx, "-target-select extended-remote", new String[] {serialDevice}); //$NON-NLS-1$
28
		this(ctx, serialDevice, true);
29
	}
30
31
	/**
32
	 * @since 1.1
33
	 */
34
	public MITargetSelect(IDMContext ctx, String host, String port, boolean extended) {
35
		super(ctx, "-target-select", new String[] { extended ? "extended-remote" : "remote", host + ":" + port}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
36
	}
37
	
38
	/**
39
	 * @since 1.1
40
	 */
41
	public MITargetSelect(IDMContext ctx, String serialDevice, boolean extended) {
42
		super(ctx, "-target-select", new String[] { extended ? "extended-remote" : "remote", serialDevice}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
27
	}
43
	}
28
44
29
}
45
}
(-)src/org/eclipse/dd/gdb/internal/provisional/launching/FinalLaunchSequence.java (-3 / +3 lines)
Lines 398-411 Link Here
398
                    
398
                    
399
                        fCommandControl.queueCommand(
399
                        fCommandControl.queueCommand(
400
                        		new MITargetSelect(fCommandControl.getContext(), 
400
                        		new MITargetSelect(fCommandControl.getContext(), 
401
                        				           fRemoteTcpHost, fRemoteTcpPort), 
401
                        				           fRemoteTcpHost, fRemoteTcpPort, fAttach), 
402
                        	    new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor));
402
                        	    new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor));
403
               		} else {
403
               		} else {
404
               			if (!getSerialDevice(requestMonitor)) return;
404
               			if (!getSerialDevice(requestMonitor)) return;
405
                    
405
                    
406
                        fCommandControl.queueCommand(
406
                        fCommandControl.queueCommand(
407
                        		new MITargetSelect(fCommandControl.getContext(), 
407
                        		new MITargetSelect(fCommandControl.getContext(), 
408
                        				           fSerialDevice), 
408
                        				           fSerialDevice, fAttach), 
409
                        	    new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor));
409
                        	    new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor));
410
               		}
410
               		}
411
            	} else {
411
            	} else {
Lines 489-495 Link Here
489
    DsfServicesTracker fTracker;
489
    DsfServicesTracker fTracker;
490
        
490
        
491
    public FinalLaunchSequence(DsfExecutor executor, GdbLaunch launch, SessionType sessionType, boolean attach, IProgressMonitor pm) {
491
    public FinalLaunchSequence(DsfExecutor executor, GdbLaunch launch, SessionType sessionType, boolean attach, IProgressMonitor pm) {
492
        super(executor, pm, "Configuring GDB", "Aborting configuring GDB");  
492
        super(executor, pm, "Configuring GDB", "Aborting configuring GDB");    //$NON-NLS-1$//$NON-NLS-2$
493
        fLaunch = launch;
493
        fLaunch = launch;
494
        fSessionType = sessionType;
494
        fSessionType = sessionType;
495
        fAttach = attach;
495
        fAttach = attach;

Return to bug 252283