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:
parent
fa70524c95
commit
4a12afdf17
1 changed files with 7 additions and 2 deletions
|
@ -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] );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue