mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 363688 - CDT issues "auto-solib-add on" command to gdb with invalid
syntax
This commit is contained in:
parent
5e4cd0c1a9
commit
c14712793d
2 changed files with 28 additions and 18 deletions
|
@ -49,24 +49,7 @@ public class StandardWinCommandFactory extends StandardCommandFactory {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MIGDBSetAutoSolib createMIGDBSetAutoSolib( boolean set ) {
|
public MIGDBSetAutoSolib createMIGDBSetAutoSolib( boolean set ) {
|
||||||
// Suppress "set auto-solib" - returns error on Windows
|
return new WinMIGDBSetAutoSolib( getMIVersion(), set );
|
||||||
return new MIGDBSetAutoSolib( getMIVersion(), true ) {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getOperation() {
|
|
||||||
return ""; //$NON-NLS-1$
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getOptions() {
|
|
||||||
return new String[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getParameters() {
|
|
||||||
return new String[0];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2012 Mentor Graphics 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:
|
||||||
|
* Mentor Graphics - Initial API and implementation
|
||||||
|
*******************************************************************************/
|
||||||
|
|
||||||
|
package org.eclipse.cdt.debug.mi.core.command.factories.win32;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.debug.mi.core.command.MIGDBSetAutoSolib;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Suppress "set auto-solib" - returns error on Windows
|
||||||
|
*/
|
||||||
|
class WinMIGDBSetAutoSolib extends MIGDBSetAutoSolib {
|
||||||
|
|
||||||
|
public WinMIGDBSetAutoSolib(String miVersion, boolean isSet) {
|
||||||
|
super(miVersion, isSet);
|
||||||
|
setOperation(""); //$NON-NLS-1$
|
||||||
|
setOptions(new String[0]);
|
||||||
|
setParameters(new String[0]);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue