mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 00:36:16 +02:00
2004-10-29 Alain Magloire
Remove of ICDISharedLibraryManager * cdi/org/eclipse/cdt/debug/core/cdi/ICDISession.java * cdi/org/eclipse/cdt/debug/core/cdi/ICDISharedLibraryManager.java * cdi/org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java * cdi/org/eclipse/cdt/debug/core/cdi/model/ICDISharedLibraryManagement.java
This commit is contained in:
parent
35a28e136d
commit
a4c551bbd7
6 changed files with 58 additions and 94 deletions
|
@ -1,3 +1,12 @@
|
|||
2004-10-29 Alain Magloire
|
||||
Remove of ICDISharedLibraryManager
|
||||
* cdi/org/eclipse/cdt/debug/core/cdi/ICDISession.java
|
||||
* cdi/org/eclipse/cdt/debug/core/cdi/ICDISharedLibraryManager.java
|
||||
* cdi/org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java
|
||||
* cdi/org/eclipse/cdt/debug/core/cdi/model/ICDISharedLibraryManagement.java
|
||||
|
||||
* CSharedLibraryManager.java
|
||||
|
||||
2004-10-28 Alain Magloire
|
||||
Add getType() method.
|
||||
* cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIExpression.java
|
||||
|
|
|
@ -66,13 +66,6 @@ public interface ICDISession {
|
|||
*/
|
||||
ICDIEventManager getEventManager();
|
||||
|
||||
/**
|
||||
* Returns the shared library manager of this debug session.
|
||||
*
|
||||
* @return the shared library manager
|
||||
*/
|
||||
ICDISharedLibraryManager getSharedLibraryManager();
|
||||
|
||||
/**
|
||||
* Returns the configuration description of this debug session.
|
||||
*
|
||||
|
|
|
@ -1,63 +0,0 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2004 QNX Software Systems and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Common Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/cpl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* QNX Software Systems - Initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.debug.core.cdi;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.ICDISharedLibrary;
|
||||
|
||||
/**
|
||||
*
|
||||
* Manages the collection of shared libraries in the debug session.
|
||||
* Auto update is on by default.
|
||||
*
|
||||
* @since: Jan 15, 2003
|
||||
*/
|
||||
public interface ICDISharedLibraryManager extends ICDIManager {
|
||||
|
||||
/**
|
||||
* Returns the array of loaded shared libraries.
|
||||
*
|
||||
* @return the array of loaded shared libraries
|
||||
* @throws CDIException on failure. Reasons include:
|
||||
*/
|
||||
ICDISharedLibrary[] getSharedLibraries() throws CDIException;
|
||||
|
||||
/**
|
||||
* Loads symbols for the specified shared libraries.
|
||||
*
|
||||
* @return the array of loaded shared libraries
|
||||
* @throws CDIException on failure. Reasons include:
|
||||
*/
|
||||
void loadSymbols(ICDISharedLibrary[] libs) throws CDIException;
|
||||
|
||||
/**
|
||||
* Loads symbols of all shared libraries.
|
||||
*
|
||||
* @return the array of loaded shared libraries
|
||||
* @throws CDIException on failure. Reasons include:
|
||||
*/
|
||||
void loadSymbols() throws CDIException;
|
||||
|
||||
/**
|
||||
* Returns the search paths for shared libraries.
|
||||
*
|
||||
* @return the array of the search paths
|
||||
* @throws CDIException
|
||||
*/
|
||||
String[] getSharedLibraryPaths() throws CDIException;
|
||||
|
||||
/**
|
||||
* Sets the shared libs paths to libpaths.
|
||||
*
|
||||
* @param array of search paths
|
||||
* @throws CDIException
|
||||
*/
|
||||
void setSharedLibraryPaths(String[] libpaths) throws CDIException;
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2004 QNX Software Systems and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Common Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/cpl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* QNX Software Systems - Initial API and implementation
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||
|
||||
/**
|
||||
* Manages the sharedLibraries in the target.
|
||||
*/
|
||||
public interface ICDISharedLibraryManagement {
|
||||
|
||||
/**
|
||||
* Returns the array of shared libraries for this target.
|
||||
*
|
||||
* @return ICDISharedLibrary[] array
|
||||
* @throws CDIException on failure.
|
||||
*/
|
||||
ICDISharedLibrary[] getSharedLibraries() throws CDIException;
|
||||
|
||||
}
|
|
@ -26,7 +26,7 @@ import org.eclipse.cdt.debug.core.cdi.ICDISessionObject;
|
|||
* @since Jul 8, 2002
|
||||
*/
|
||||
public interface ICDITarget extends ICDIThreadGroup, ICDIExpressionManagement,
|
||||
ICDISourceManagement, ICDIMemoryBlockManagement, ICDISessionObject {
|
||||
ICDISourceManagement, ICDISharedLibraryManagement, ICDIMemoryBlockManagement, ICDISessionObject {
|
||||
|
||||
/**
|
||||
* Gets the target process.
|
||||
|
|
|
@ -18,8 +18,8 @@ import org.eclipse.cdt.debug.core.ICDebugConstants;
|
|||
import org.eclipse.cdt.debug.core.ICSharedLibraryManager;
|
||||
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDIManager;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDISharedLibraryManager;
|
||||
import org.eclipse.cdt.debug.core.cdi.model.ICDISharedLibrary;
|
||||
import org.eclipse.cdt.debug.core.cdi.model.ICDITarget;
|
||||
import org.eclipse.cdt.debug.core.model.ICSharedLibrary;
|
||||
import org.eclipse.cdt.debug.internal.core.model.CDebugElement;
|
||||
import org.eclipse.cdt.debug.internal.core.model.CDebugTarget;
|
||||
|
@ -143,10 +143,10 @@ public class CSharedLibraryManager extends CUpdateManager implements ICSharedLib
|
|||
|
||||
protected ICDIManager getCDIManager()
|
||||
{
|
||||
if ( getDebugTarget() != null )
|
||||
{
|
||||
return getDebugTarget().getCDISession().getSharedLibraryManager();
|
||||
}
|
||||
// if ( getDebugTarget() != null )
|
||||
// {
|
||||
// return getDebugTarget().getCDISession().getSharedLibraryManager();
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -155,19 +155,14 @@ public class CSharedLibraryManager extends CUpdateManager implements ICSharedLib
|
|||
*/
|
||||
public void loadSymbols( ICSharedLibrary[] libraries ) throws DebugException
|
||||
{
|
||||
ICDISharedLibraryManager slm = (ICDISharedLibraryManager)getCDIManager();
|
||||
if ( slm != null )
|
||||
ICDITarget target = getDebugTarget().getCDITarget();
|
||||
for (int i = 0; i < libraries.length; ++i)
|
||||
{
|
||||
ArrayList cdiLibs = new ArrayList( libraries.length );
|
||||
for ( int i = 0; i < libraries.length; ++i )
|
||||
try
|
||||
{
|
||||
cdiLibs.add( ((CSharedLibrary)libraries[i]).getCDISharedLibrary() );
|
||||
((CSharedLibrary)libraries[i]).getCDISharedLibrary().loadSymbols();
|
||||
}
|
||||
try
|
||||
{
|
||||
slm.loadSymbols( (ICDISharedLibrary[])cdiLibs.toArray( new ICDISharedLibrary[cdiLibs.size()] ) );
|
||||
}
|
||||
catch( CDIException e )
|
||||
catch ( CDIException e )
|
||||
{
|
||||
CDebugElement.targetRequestFailed( e.getMessage(), null );
|
||||
}
|
||||
|
@ -179,18 +174,19 @@ public class CSharedLibraryManager extends CUpdateManager implements ICSharedLib
|
|||
*/
|
||||
public void loadSymbolsForAll() throws DebugException
|
||||
{
|
||||
ICDISharedLibraryManager slm = (ICDISharedLibraryManager)getCDIManager();
|
||||
if ( slm != null )
|
||||
ICDITarget target = getDebugTarget().getCDITarget();
|
||||
try
|
||||
{
|
||||
try
|
||||
ICDISharedLibrary[] libraries = target.getSharedLibraries();
|
||||
for (int i = 0; i < libraries.length; ++i)
|
||||
{
|
||||
slm.loadSymbols();
|
||||
}
|
||||
catch( CDIException e )
|
||||
{
|
||||
CDebugElement.targetRequestFailed( e.getMessage(), null );
|
||||
libraries[i].loadSymbols();
|
||||
}
|
||||
}
|
||||
catch ( CDIException e )
|
||||
{
|
||||
CDebugElement.targetRequestFailed( e.getMessage(), null );
|
||||
}
|
||||
}
|
||||
|
||||
private void setBreakpoints()
|
||||
|
|
Loading…
Add table
Reference in a new issue