|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2008, 2009 Ericsson and others. |
2 |
* Copyright (c) 2008, 2011 Ericsson and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 12-18
Link Here
|
| 12 |
|
12 |
|
| 13 |
package org.eclipse.cdt.dsf.mi.service.command.commands; |
13 |
package org.eclipse.cdt.dsf.mi.service.command.commands; |
| 14 |
|
14 |
|
| 15 |
import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlDMContext; |
15 |
import org.eclipse.cdt.dsf.mi.service.IMIContainerDMContext; |
| 16 |
|
16 |
|
| 17 |
/** |
17 |
/** |
| 18 |
* -gdb-set args ARGS |
18 |
* -gdb-set args ARGS |
|
Lines 21-34
Link Here
|
| 21 |
* @since 1.1 |
21 |
* @since 1.1 |
| 22 |
*/ |
22 |
*/ |
| 23 |
public class MIGDBSetArgs extends MIGDBSet { |
23 |
public class MIGDBSetArgs extends MIGDBSet { |
| 24 |
public MIGDBSetArgs(ICommandControlDMContext dmc) { |
24 |
|
|
|
25 |
/** @since 4.0 */ |
| 26 |
public MIGDBSetArgs(IMIContainerDMContext dmc) { |
| 25 |
this(dmc, new String[0]); |
27 |
this(dmc, new String[0]); |
| 26 |
} |
28 |
} |
| 27 |
|
29 |
|
| 28 |
/** |
30 |
/** @since 4.0 */ |
| 29 |
* @since 4.0 |
31 |
public MIGDBSetArgs(IMIContainerDMContext dmc, String[] arguments) { |
| 30 |
*/ |
|
|
| 31 |
public MIGDBSetArgs(ICommandControlDMContext dmc, String[] arguments) { |
| 32 |
super(dmc, null); |
32 |
super(dmc, null); |
| 33 |
|
33 |
|
| 34 |
String[] cmdArray = new String[arguments.length + 1]; |
34 |
String[] cmdArray = new String[arguments.length + 1]; |
|
Lines 38-49
Link Here
|
| 38 |
} |
38 |
} |
| 39 |
setParameters(cmdArray); |
39 |
setParameters(cmdArray); |
| 40 |
} |
40 |
} |
| 41 |
|
|
|
| 42 |
/** |
| 43 |
* @deprecated Use MIGDBSetArgs(ICommandControlDMContext, String[]) instead. |
| 44 |
*/ |
| 45 |
@Deprecated |
| 46 |
public MIGDBSetArgs(ICommandControlDMContext dmc, String arguments) { |
| 47 |
this(dmc, arguments.replaceAll("\n", " ").split(" ")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| 48 |
} |
| 49 |
} |
41 |
} |