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:
parent
cba9b18bf5
commit
d6f41fe8a8
3 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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"});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue