1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52: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 { public void setAutoSolib() throws CDIException {
MISession mi = getCSession().getMISession(); MISession mi = getCSession().getMISession();
CommandFactory factory = mi.getCommandFactory(); CommandFactory factory = mi.getCommandFactory();
MIGDBSetAutoSolib solib = factory.createMIGDBSetAutoSolib(); MIGDBSetAutoSolib solib = factory.createMIGDBSetAutoSolib(true);
try { try {
mi.postCommand(solib); mi.postCommand(solib);
MIInfo info = solib.getMIInfo(); MIInfo info = solib.getMIInfo();

View file

@ -163,8 +163,8 @@ public class CommandFactory {
return new MIGDBSet(params); return new MIGDBSet(params);
} }
public MIGDBSetAutoSolib createMIGDBSetAutoSolib() { public MIGDBSetAutoSolib createMIGDBSetAutoSolib(boolean set) {
return new MIGDBSetAutoSolib(); return new MIGDBSetAutoSolib(set);
} }
public MIGDBSetSolibSearchPath createMIGDBSetSolibSearchPath(String[] params) { 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 class MIGDBSetAutoSolib extends MIGDBSet {
public MIGDBSetAutoSolib() { public MIGDBSetAutoSolib(boolean isSet) {
super(new String[] {"auto-solib-add"}); super(new String[] {"auto-solib-add", (isSet) ? "1" : "0"});
} }
} }