mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
In the "terminate" event handler of the session manager check the targets that belong to the current session.
This commit is contained in:
parent
f6969bb0a8
commit
9e873ea496
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-05-08 Mikhail Khodjaiants
|
||||
In the "terminate" event handler of the session manager check the targets that
|
||||
belong to the current session.
|
||||
* SessionManager.java
|
||||
|
||||
2003-05-07 Mikhail Khodjaiants
|
||||
Set the error status if the debug target is suspended because of an error.
|
||||
* CDebugTarget.java
|
||||
|
|
|
@ -69,7 +69,9 @@ public class SessionManager implements IDebugEventSetListener
|
|||
boolean terminate = true;
|
||||
for ( int i = 0; i < targets.length; ++i )
|
||||
{
|
||||
if ( !targets[i].isTerminated() && !targets[i].isDisconnected() )
|
||||
if ( targets[i].getAdapter( ICDITarget.class ) != null &&
|
||||
session.equals( ((ICDITarget)targets[i].getAdapter( ICDITarget.class )).getSession() ) &&
|
||||
!targets[i].isTerminated() && !targets[i].isDisconnected() )
|
||||
terminate = false;
|
||||
}
|
||||
if ( terminate )
|
||||
|
|
Loading…
Add table
Reference in a new issue