1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 00:45:28 +02:00

Temporary fix for source search path.

This commit is contained in:
Mikhail Khodjaiants 2002-09-04 21:09:51 +00:00
parent b4632f88d2
commit 66bd4486a2

View file

@ -90,6 +90,17 @@ public class CDebugModel
final boolean stopInMain ) throws DebugException
{
final IDebugTarget[] target = new IDebugTarget[1];
// Temporary
try
{
cdiTarget.getSession().addSearchPaths( new String[] { project.getLocation().toOSString() } );
}
catch( CDIException e )
{
CDebugCorePlugin.log( e );
}
IWorkspaceRunnable r = new IWorkspaceRunnable()
{
public void run( IProgressMonitor m )
@ -111,15 +122,6 @@ public class CDebugModel
{
CDebugCorePlugin.log( e );
}
// Temporary
try
{
cdiTarget.getSession().addSearchPaths( new String[] { project.getLocation().toOSString() } );
}
catch( CDIException e )
{
((CDebugElement)target[0]).targetRequestFailed( "Operation failed. Reason: ", e );
}
if ( stopInMain )
{