mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
new method isAutoLoadSymbols.
This commit is contained in:
parent
8abc6dd285
commit
818d86129c
1 changed files with 22 additions and 0 deletions
|
@ -19,6 +19,7 @@ import org.eclipse.cdt.debug.mi.core.cdi.model.SharedLibrary;
|
|||
import org.eclipse.cdt.debug.mi.core.command.CommandFactory;
|
||||
import org.eclipse.cdt.debug.mi.core.command.MIGDBSetAutoSolib;
|
||||
import org.eclipse.cdt.debug.mi.core.command.MIGDBSetSolibSearchPath;
|
||||
import org.eclipse.cdt.debug.mi.core.command.MIGDBShow;
|
||||
import org.eclipse.cdt.debug.mi.core.command.MIGDBShowSolibSearchPath;
|
||||
import org.eclipse.cdt.debug.mi.core.command.MIInfoSharedLibrary;
|
||||
import org.eclipse.cdt.debug.mi.core.command.MISharedLibrary;
|
||||
|
@ -26,6 +27,7 @@ import org.eclipse.cdt.debug.mi.core.event.MIEvent;
|
|||
import org.eclipse.cdt.debug.mi.core.event.MISharedLibChangedEvent;
|
||||
import org.eclipse.cdt.debug.mi.core.event.MISharedLibCreatedEvent;
|
||||
import org.eclipse.cdt.debug.mi.core.event.MISharedLibUnloadedEvent;
|
||||
import org.eclipse.cdt.debug.mi.core.output.MIGDBShowInfo;
|
||||
import org.eclipse.cdt.debug.mi.core.output.MIGDBShowSolibSearchPathInfo;
|
||||
import org.eclipse.cdt.debug.mi.core.output.MIInfo;
|
||||
import org.eclipse.cdt.debug.mi.core.output.MIInfoSharedLibraryInfo;
|
||||
|
@ -146,6 +148,26 @@ public class SharedLibraryManager extends SessionObject implements ICDISharedLib
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public boolean isAutoLoadSymbols() throws CDIException {
|
||||
Session session = (Session)getSession();
|
||||
MISession mi = session.getMISession();
|
||||
CommandFactory factory = mi.getCommandFactory();
|
||||
MIGDBShow show = factory.createMIGDBShow(new String[]{"auto-solib-add"});
|
||||
try {
|
||||
mi.postCommand(show);
|
||||
MIGDBShowInfo info = show.getMIGDBShowInfo();
|
||||
String value = info.getValue();
|
||||
if (value != null) {
|
||||
return value.equalsIgnoreCase("on");
|
||||
}
|
||||
} catch (MIException e) {
|
||||
throw new MI2CDIException(e);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.eclipse.cdt.debug.core.cdi.ICDISharedLibraryManager#setSharedLibraryPaths(String[])
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue