mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 16:56:04 +02:00
No need to set the source search path to the debugger.
This commit is contained in:
parent
1290626b1e
commit
17043cea03
5 changed files with 7 additions and 63 deletions
|
@ -1,3 +1,10 @@
|
|||
2003-02-20 Mikhail Khodjaiants
|
||||
No need to set the source search path to the debugger.
|
||||
* ICSourceLocation.java
|
||||
* CDirectorySourceLocation.java
|
||||
* CProjectSourceLocation.java
|
||||
* CDebugTarget.java
|
||||
|
||||
2003-02-20 Mikhail Khodjaiants
|
||||
Changed to 'public' the access modifier of the 'setAssocition' method.
|
||||
* CDirectorySourceLocation.java
|
||||
|
|
|
@ -7,7 +7,6 @@ package org.eclipse.cdt.debug.core.sourcelookup;
|
|||
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IAdaptable;
|
||||
import org.eclipse.core.runtime.IPath;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -37,13 +36,6 @@ public interface ICSourceLocation extends IAdaptable
|
|||
*/
|
||||
Object findSourceElement( String name ) throws CoreException;
|
||||
|
||||
/**
|
||||
* Returns the paths associated with this location.
|
||||
*
|
||||
* @return the paths associated with this location
|
||||
*/
|
||||
IPath[] getPaths();
|
||||
|
||||
/**
|
||||
* Returns a memento for this source location from which this
|
||||
* source location can be reconstructed.
|
||||
|
|
|
@ -34,7 +34,6 @@ import org.eclipse.cdt.debug.core.cdi.ICDIExpressionManager;
|
|||
import org.eclipse.cdt.debug.core.cdi.ICDILocation;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDISessionObject;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDISignalReceived;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDISourceManager;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDIWatchpointScope;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDIWatchpointTrigger;
|
||||
import org.eclipse.cdt.debug.core.cdi.event.ICDIChangedEvent;
|
||||
|
@ -71,7 +70,6 @@ import org.eclipse.cdt.debug.core.model.IJumpToLine;
|
|||
import org.eclipse.cdt.debug.core.model.IRunToAddress;
|
||||
import org.eclipse.cdt.debug.core.model.IRunToLine;
|
||||
import org.eclipse.cdt.debug.core.model.IState;
|
||||
import org.eclipse.cdt.debug.core.sourcelookup.ICSourceLocation;
|
||||
import org.eclipse.cdt.debug.core.sourcelookup.ICSourceLocator;
|
||||
import org.eclipse.cdt.debug.core.sourcelookup.ISourceMode;
|
||||
import org.eclipse.cdt.debug.internal.core.CDebugUtils;
|
||||
|
@ -297,7 +295,6 @@ public class CDebugTarget extends CDebugElement
|
|||
protected void initialize()
|
||||
{
|
||||
initializeState();
|
||||
setSourceSearchPath();
|
||||
initializeBreakpoints();
|
||||
initializeRegisters();
|
||||
initializeMemoryManager();
|
||||
|
@ -2178,33 +2175,6 @@ public class CDebugTarget extends CDebugElement
|
|||
return getLaunch().getSourceLocator();
|
||||
}
|
||||
|
||||
protected void setSourceSearchPath()
|
||||
{
|
||||
ICDISourceManager mgr = getCDISession().getSourceManager();
|
||||
ISourceLocator locator = getLaunch().getSourceLocator();
|
||||
ArrayList list = new ArrayList();
|
||||
if ( locator != null && locator instanceof ICSourceLocator )
|
||||
{
|
||||
ICSourceLocation[] locations = ((ICSourceLocator)locator).getSourceLocations();
|
||||
for ( int i = 0; i < locations.length; ++i )
|
||||
{
|
||||
IPath[] paths = locations[i].getPaths();
|
||||
for ( int j = 0; j < paths.length; ++j )
|
||||
{
|
||||
list.add( paths[j].toOSString() );
|
||||
}
|
||||
}
|
||||
}
|
||||
try
|
||||
{
|
||||
mgr.addSourcePaths( (String[])list.toArray( new String[list.size()] ) );
|
||||
}
|
||||
catch( CDIException e )
|
||||
{
|
||||
CDebugCorePlugin.log( e );
|
||||
}
|
||||
}
|
||||
|
||||
protected void resetRegisters()
|
||||
{
|
||||
Iterator it = fRegisterGroups.iterator();
|
||||
|
|
|
@ -202,14 +202,6 @@ public class CDirectorySourceLocation implements IDirectorySourceLocation
|
|||
return new FileStorage( path );
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.eclipse.cdt.debug.core.sourcelookup.ICSourceLocation#getPaths()
|
||||
*/
|
||||
public IPath[] getPaths()
|
||||
{
|
||||
return new IPath[] { fDirectory };
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.sourcelookup.ICSourceLocation#getMemento()
|
||||
*/
|
||||
|
|
|
@ -177,23 +177,6 @@ public class CProjectSourceLocation implements IProjectSourceLocation
|
|||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.eclipse.cdt.debug.core.sourcelookup.ICSourceLocation#getPaths()
|
||||
*/
|
||||
public IPath[] getPaths()
|
||||
{
|
||||
IPath[] result = new IPath[0];
|
||||
if ( getProject() != null )
|
||||
{
|
||||
IPath location = getProject().getLocation();
|
||||
if ( location != null )
|
||||
{
|
||||
result = new IPath[] { location };
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
private Object findFile( IContainer container, String fileName )
|
||||
{
|
||||
try
|
||||
|
|
Loading…
Add table
Reference in a new issue