mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-02 05:45:58 +02:00
Bug 318322: Add "set solib-absolute-prefix" command
This commit is contained in:
parent
0a81559841
commit
d080030456
2 changed files with 32 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
* QNX Software Systems - Initial API and implementation
|
* QNX Software Systems - Initial API and implementation
|
||||||
* ENEA Software AB - CLI command extension - fix for bug 190277
|
* ENEA Software AB - CLI command extension - fix for bug 190277
|
||||||
* Ericsson - Implementation for DSF-GDB
|
* Ericsson - Implementation for DSF-GDB
|
||||||
|
* Anna Dushistova (Mentor Graphics) - [318322] Add set solib-absolute-prefix
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.cdt.dsf.mi.service.command;
|
package org.eclipse.cdt.dsf.mi.service.command;
|
||||||
|
@ -85,6 +86,7 @@ import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBSetAutoSolib;
|
||||||
import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBSetEnv;
|
import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBSetEnv;
|
||||||
import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBSetNonStop;
|
import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBSetNonStop;
|
||||||
import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBSetPagination;
|
import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBSetPagination;
|
||||||
|
import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBSetSolibAbsolutePrefix;
|
||||||
import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBSetSolibSearchPath;
|
import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBSetSolibSearchPath;
|
||||||
import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBSetTargetAsync;
|
import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBSetTargetAsync;
|
||||||
import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBShowExitCode;
|
import org.eclipse.cdt.dsf.mi.service.command.commands.MIGDBShowExitCode;
|
||||||
|
@ -549,6 +551,10 @@ public class CommandFactory {
|
||||||
return new MIGDBSetPagination(ctx, isSet);
|
return new MIGDBSetPagination(ctx, isSet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ICommand<MIInfo> createMIGDBSetSolibAbsolutePrefix(ICommandControlDMContext ctx, String prefix) {
|
||||||
|
return new MIGDBSetSolibAbsolutePrefix(ctx, prefix);
|
||||||
|
}
|
||||||
|
|
||||||
public ICommand<MIInfo> createMIGDBSetSolibSearchPath(ICommandControlDMContext ctx, String[] paths) {
|
public ICommand<MIInfo> createMIGDBSetSolibSearchPath(ICommandControlDMContext ctx, String[] paths) {
|
||||||
return new MIGDBSetSolibSearchPath(ctx, paths);
|
return new MIGDBSetSolibSearchPath(ctx, paths);
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2010 Mentor Graphics Corporation 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:
|
||||||
|
* Anna Dushistova (Mentor Graphics) - initial API and implementation
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.cdt.dsf.mi.service.command.commands;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlDMContext;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* -gdb-set solib-absolute-prefix PATH
|
||||||
|
* @since 3.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class MIGDBSetSolibAbsolutePrefix extends MIGDBSet {
|
||||||
|
|
||||||
|
public MIGDBSetSolibAbsolutePrefix(ICommandControlDMContext ctx, String prefix) {
|
||||||
|
super(ctx, new String[] {"solib-absolute-prefix", prefix}); //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue