1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Change the signature on SetAutoSolib to take a boolean.

This commit is contained in:
Alain Magloire 2002-09-24 19:20:50 +00:00
parent cba9b18bf5
commit d6f41fe8a8
3 changed files with 5 additions and 5 deletions

View file

@ -108,7 +108,7 @@ public class SourceManager extends SessionObject implements ICDISourceManager {
public void setAutoSolib() throws CDIException {
MISession mi = getCSession().getMISession();
CommandFactory factory = mi.getCommandFactory();
MIGDBSetAutoSolib solib = factory.createMIGDBSetAutoSolib();
MIGDBSetAutoSolib solib = factory.createMIGDBSetAutoSolib(true);
try {
mi.postCommand(solib);
MIInfo info = solib.getMIInfo();

View file

@ -163,8 +163,8 @@ public class CommandFactory {
return new MIGDBSet(params);
}
public MIGDBSetAutoSolib createMIGDBSetAutoSolib() {
return new MIGDBSetAutoSolib();
public MIGDBSetAutoSolib createMIGDBSetAutoSolib(boolean set) {
return new MIGDBSetAutoSolib(set);
}
public MIGDBSetSolibSearchPath createMIGDBSetSolibSearchPath(String[] params) {

View file

@ -14,7 +14,7 @@ package org.eclipse.cdt.debug.mi.core.command;
*
*/
public class MIGDBSetAutoSolib extends MIGDBSet {
public MIGDBSetAutoSolib() {
super(new String[] {"auto-solib-add"});
public MIGDBSetAutoSolib(boolean isSet) {
super(new String[] {"auto-solib-add", (isSet) ? "1" : "0"});
}
}