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 263689 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/cdt/dsf/gdb/launching/FinalLaunchSequence.java (-2 / +5 lines)
Lines 34-41 Link Here
34
import org.eclipse.cdt.dsf.mi.service.CSourceLookup;
34
import org.eclipse.cdt.dsf.mi.service.CSourceLookup;
35
import org.eclipse.cdt.dsf.mi.service.IMIProcesses;
35
import org.eclipse.cdt.dsf.mi.service.IMIProcesses;
36
import org.eclipse.cdt.dsf.mi.service.MIBreakpointsManager;
36
import org.eclipse.cdt.dsf.mi.service.MIBreakpointsManager;
37
import org.eclipse.cdt.dsf.mi.service.command.commands.CLIEnvironmentCD;
37
import org.eclipse.cdt.dsf.mi.service.command.commands.CLISource;
38
import org.eclipse.cdt.dsf.mi.service.command.commands.CLISource;
38
import org.eclipse.cdt.dsf.mi.service.command.commands.MIEnvironmentCD;
39
import org.eclipse.cdt.dsf.mi.service.command.commands.MIFileExecAndSymbols;
39
import org.eclipse.cdt.dsf.mi.service.command.commands.MIFileExecAndSymbols;
40
import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBSetArgs;
40
import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBSetArgs;
41
import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBSetAutoSolib;
41
import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBSetAutoSolib;
Lines 199-206 Link Here
199
      		}
199
      		}
200
200
201
        	if (dir != null) {
201
        	if (dir != null) {
202
        		// "-environment-cd" does not work the same way on MacOS because it requires
203
        		// more quoting.  Using the CLI version "cd" works for every platform.
204
        		// See http://bugs.eclipse.org/263689
202
        		fCommandControl.queueCommand(
205
        		fCommandControl.queueCommand(
203
        				new MIEnvironmentCD(fCommandControl.getContext(), dir.toPortableString()), 
206
        				new CLIEnvironmentCD(fCommandControl.getContext(), dir.toPortableString()), 
204
        				new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor));
207
        				new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor));
205
        	} else {
208
        	} else {
206
        		requestMonitor.done();
209
        		requestMonitor.done();
(-)src/org/eclipse/cdt/dsf/mi/service/command/commands/CLIEnvironmentCD.java (+27 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2010 Ericsson and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     Ericsson - Initial API and implementation'
10
 *******************************************************************************/
11
package org.eclipse.cdt.dsf.mi.service.command.commands;
12
13
import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlDMContext;
14
import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo;
15
16
/**
17
 *      cd PATHDIR
18
 *
19
 *   Set GDB's working directory.
20
 * @since 3.0
21
 * 
22
 */
23
public class CLIEnvironmentCD extends CLICommand<MIInfo> {
24
	public CLIEnvironmentCD(ICommandControlDMContext ctx, String path) {
25
		super(ctx, "cd " + path); //$NON-NLS-1$
26
	}
27
}

Return to bug 263689