1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00

More support for CDebugTargets with no binaries.

This commit is contained in:
Ken Ryall 2007-02-08 03:53:04 +00:00
parent fa70524c95
commit 4a12afdf17

View file

@ -370,8 +370,13 @@ public class CDebugTarget extends CDebugElement implements ICDebugTarget, ICDIEv
catch( CDIException e ) {
DebugPlugin.log( e );
}
ICModule[] modules = new ICModule[slibs.length + 1];
modules[0] = CModule.createExecutable( this, getExecFile().getPath() );
ICModule[] modules = null;
if (getExecFile() != null) {
modules = new ICModule[slibs.length + 1];
modules[0] = CModule.createExecutable( this, getExecFile().getPath() );
}
else
modules = new ICModule[slibs.length];
for ( int i = 0; i < slibs.length; ++i ) {
modules[i + 1] = CModule.createSharedLibrary( this, slibs[i] );
}