1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +02:00

The 'setAutoSolib' method is no longer in ICDISharedLibraryManager.

This commit is contained in:
Mikhail Khodjaiants 2003-02-13 00:10:58 +00:00
parent c6f9559478
commit 0bcd49770d
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2003-02-12 Mikhail Khodjaiants
The 'setAutoSolib' method is no longer in ICDISharedLibraryManager.
* GDBDebugger.java
2003-02-12 Alain Magloire 2003-02-12 Alain Magloire
* src/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java: * src/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java:

View file

@ -14,6 +14,7 @@ import org.eclipse.cdt.debug.core.cdi.CDIException;
import org.eclipse.cdt.debug.core.cdi.ICDISession; import org.eclipse.cdt.debug.core.cdi.ICDISession;
import org.eclipse.cdt.debug.core.cdi.ICDISharedLibraryManager; import org.eclipse.cdt.debug.core.cdi.ICDISharedLibraryManager;
import org.eclipse.cdt.debug.mi.core.cdi.Session; import org.eclipse.cdt.debug.mi.core.cdi.Session;
import org.eclipse.cdt.debug.mi.core.cdi.SharedLibraryManager;
import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IPath;
@ -24,8 +25,11 @@ public class GDBDebugger implements ICDebugger {
protected void initializeLibraries(ILaunchConfiguration config, Session session) throws CDIException { protected void initializeLibraries(ILaunchConfiguration config, Session session) throws CDIException {
try { try {
ICDISharedLibraryManager mgr = session.getSharedLibraryManager(); ICDISharedLibraryManager mgr = session.getSharedLibraryManager();
boolean autolib = config.getAttribute(IMILaunchConfigurationConstants.ATTR_AUTO_SOLIB, true); if ( mgr instanceof SharedLibraryManager )
mgr.setAutoLoadSymbols(autolib); {
boolean autolib = config.getAttribute(IMILaunchConfigurationConstants.ATTR_AUTO_SOLIB, false);
((SharedLibraryManager)mgr).setAutoLoadSymbols(autolib);
}
List p = config.getAttribute(IMILaunchConfigurationConstants.ATTR_SOLIB_PATH, new ArrayList(1)); List p = config.getAttribute(IMILaunchConfigurationConstants.ATTR_SOLIB_PATH, new ArrayList(1));
if (p.size() > 0) { if (p.size() > 0) {
String[] paths = (String[])p.toArray(new String[0]); String[] paths = (String[])p.toArray(new String[0]);