mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Bug 337687: Support for MI command -exec-arguments
This commit is contained in:
parent
f37667bcd3
commit
819d909a4d
2 changed files with 38 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
||||||
* Vladimir Prus (CodeSourcery) - Support for -data-read-memory-bytes (bug 322658)
|
* Vladimir Prus (CodeSourcery) - Support for -data-read-memory-bytes (bug 322658)
|
||||||
* Jens Elmenthaler (Verigy) - Added Full GDB pretty-printing support (bug 302121)
|
* Jens Elmenthaler (Verigy) - Added Full GDB pretty-printing support (bug 302121)
|
||||||
* Onur Akdemir (TUBITAK BILGEM-ITI) - Multi-process debugging (Bug 237306)
|
* Onur Akdemir (TUBITAK BILGEM-ITI) - Multi-process debugging (Bug 237306)
|
||||||
|
* Abeer Bagul - Support for -exec-arguments (bug 337687)
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.cdt.dsf.mi.service.command;
|
package org.eclipse.cdt.dsf.mi.service.command;
|
||||||
|
@ -142,6 +143,7 @@ import org.eclipse.cdt.dsf.mi.service.command.commands.MIVarSetUpdateRange;
|
||||||
import org.eclipse.cdt.dsf.mi.service.command.commands.MIVarShowAttributes;
|
import org.eclipse.cdt.dsf.mi.service.command.commands.MIVarShowAttributes;
|
||||||
import org.eclipse.cdt.dsf.mi.service.command.commands.MIVarShowFormat;
|
import org.eclipse.cdt.dsf.mi.service.command.commands.MIVarShowFormat;
|
||||||
import org.eclipse.cdt.dsf.mi.service.command.commands.MIVarUpdate;
|
import org.eclipse.cdt.dsf.mi.service.command.commands.MIVarUpdate;
|
||||||
|
import org.eclipse.cdt.dsf.mi.service.command.commands.MIExecArguments;
|
||||||
import org.eclipse.cdt.dsf.mi.service.command.output.CLICatchInfo;
|
import org.eclipse.cdt.dsf.mi.service.command.output.CLICatchInfo;
|
||||||
import org.eclipse.cdt.dsf.mi.service.command.output.CLIInfoProgramInfo;
|
import org.eclipse.cdt.dsf.mi.service.command.output.CLIInfoProgramInfo;
|
||||||
import org.eclipse.cdt.dsf.mi.service.command.output.CLIInfoSharedLibraryInfo;
|
import org.eclipse.cdt.dsf.mi.service.command.output.CLIInfoSharedLibraryInfo;
|
||||||
|
@ -399,6 +401,11 @@ public class CommandFactory {
|
||||||
return new MIEnvironmentDirectory(ctx, paths, reset);
|
return new MIEnvironmentDirectory(ctx, paths, reset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @since 4.0 */
|
||||||
|
public ICommand<MIInfo> createMIExecArguments(IMIContainerDMContext ctx, String[] args) {
|
||||||
|
return new MIExecArguments(ctx, args);
|
||||||
|
}
|
||||||
|
|
||||||
public ICommand<MIInfo> createMIExecContinue(IExecutionDMContext dmc) {
|
public ICommand<MIInfo> createMIExecContinue(IExecutionDMContext dmc) {
|
||||||
return new MIExecContinue(dmc);
|
return new MIExecContinue(dmc);
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2011 Tensilica and others
|
||||||
|
* All rights reserved. This program and the accompanying materials
|
||||||
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
|
* which accompanies this distribution, and is available at
|
||||||
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Abeer Bagul (Tensilica) - Initial API and implementation
|
||||||
|
*******************************************************************************/
|
||||||
|
|
||||||
|
package org.eclipse.cdt.dsf.mi.service.command.commands;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.dsf.mi.service.IMIContainerDMContext;
|
||||||
|
import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* -exec-arguments ARGS
|
||||||
|
*
|
||||||
|
* Set the inferior program arguments, to be used in the next `-exec-run'.
|
||||||
|
* Equivalent to using {@link MIGDBSetArgs}
|
||||||
|
*
|
||||||
|
* @since 4.0
|
||||||
|
*/
|
||||||
|
public class MIExecArguments extends MICommand<MIInfo>
|
||||||
|
{
|
||||||
|
public MIExecArguments(IMIContainerDMContext ctx, String[] args) {
|
||||||
|
super(ctx, "-exec-arguments", args); //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue