Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2003-01-29 19:18:49 +0000
committerAlain Magloire2003-01-29 19:18:49 +0000
commitf7017b8a3adf328eeb9b762dca6831107964bf7c (patch)
treeb54fd74a32ec7629021c4f628d63ff9fec091a85
parent232c6a834e5e3567d75676c32bafbc7e60cd2366 (diff)
downloadorg.eclipse.cdt-f7017b8a3adf328eeb9b762dca6831107964bf7c.tar.gz
org.eclipse.cdt-f7017b8a3adf328eeb9b762dca6831107964bf7c.tar.xz
org.eclipse.cdt-f7017b8a3adf328eeb9b762dca6831107964bf7c.zip
New methods set/getSharedLibraryManager, setAutoLoadSymbols.
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/SharedLibraryManager.java53
1 files changed, 53 insertions, 0 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/SharedLibraryManager.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/SharedLibraryManager.java
index f02bf7a9a6e..02b73cca619 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/SharedLibraryManager.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/SharedLibraryManager.java
@@ -17,12 +17,16 @@ import org.eclipse.cdt.debug.mi.core.MIException;
import org.eclipse.cdt.debug.mi.core.MISession;
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.MIGDBShowSolibSearchPath;
import org.eclipse.cdt.debug.mi.core.command.MIInfoSharedLibrary;
import org.eclipse.cdt.debug.mi.core.command.MISharedLibrary;
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.MIGDBShowSolibSearchPathInfo;
import org.eclipse.cdt.debug.mi.core.output.MIInfo;
import org.eclipse.cdt.debug.mi.core.output.MIInfoSharedLibraryInfo;
import org.eclipse.cdt.debug.mi.core.output.MIShared;
@@ -155,6 +159,55 @@ public class SharedLibraryManager extends SessionObject implements ICDISharedLib
}
/**
+ * @see org.eclipse.cdt.debug.core.cdi.ICDISharedLibraryManager#setSharedLibraryPaths(String[])
+ */
+ public void setAutoLoadSymbols(boolean set) throws CDIException {
+ Session session = (Session)getSession();
+ MISession mi = session.getMISession();
+ CommandFactory factory = mi.getCommandFactory();
+ MIGDBSetAutoSolib solib = factory.createMIGDBSetAutoSolib(set);
+ try {
+ mi.postCommand(solib);
+ solib.getMIInfo();
+ } catch (MIException e) {
+ throw new MI2CDIException(e);
+ }
+ }
+
+ /**
+ * @see org.eclipse.cdt.debug.core.cdi.ICDISharedLibraryManager#setSharedLibraryPaths(String[])
+ */
+ public void setSharedLibraryPaths(String[] libPaths) throws CDIException {
+ Session session = (Session)getSession();
+ MISession mi = session.getMISession();
+ CommandFactory factory = mi.getCommandFactory();
+ MIGDBSetSolibSearchPath solib = factory.createMIGDBSetSolibSearchPath(libPaths);
+ try {
+ mi.postCommand(solib);
+ solib.getMIInfo();
+ } catch (MIException e) {
+ throw new MI2CDIException(e);
+ }
+ }
+
+ /**
+ * @see org.eclipse.cdt.debug.core.cdi.ICDISharedLibraryManager#getSharedLibraryPaths()
+ */
+ public String[] getSharedLibraryPaths() throws CDIException {
+ Session session = (Session)getSession();
+ MISession mi = session.getMISession();
+ CommandFactory factory = mi.getCommandFactory();
+ MIGDBShowSolibSearchPath dir = factory.createMIGDBShowSolibSearchPath();
+ try {
+ mi.postCommand(dir);
+ MIGDBShowSolibSearchPathInfo info = dir.getMIGDBShowSolibSearchPathInfo();
+ return info.getDirectories();
+ } catch (MIException e) {
+ throw new MI2CDIException(e);
+ }
+ }
+
+ /**
* @see org.eclipse.cdt.debug.core.cdi.ICDISharedLibraryManager#getSharedLibraries()
*/
public ICDISharedLibrary[] getSharedLibraries() throws CDIException {

Back to the top