mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-09 19:43:27 +02:00
Temporary fix for source search path.
This commit is contained in:
parent
b4632f88d2
commit
66bd4486a2
1 changed files with 11 additions and 9 deletions
|
@ -90,6 +90,17 @@ public class CDebugModel
|
||||||
final boolean stopInMain ) throws DebugException
|
final boolean stopInMain ) throws DebugException
|
||||||
{
|
{
|
||||||
final IDebugTarget[] target = new IDebugTarget[1];
|
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()
|
IWorkspaceRunnable r = new IWorkspaceRunnable()
|
||||||
{
|
{
|
||||||
public void run( IProgressMonitor m )
|
public void run( IProgressMonitor m )
|
||||||
|
@ -111,15 +122,6 @@ public class CDebugModel
|
||||||
{
|
{
|
||||||
CDebugCorePlugin.log( e );
|
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 )
|
if ( stopInMain )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue