mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
gdb session isn't getting cleaned up because of of my change to null out the ICDITarget reference after we dispose it. Reported by Mikhail. Will revisit. For now, just avoid nulling the reference. Restores previous behavior.
This commit is contained in:
parent
1efd4082c4
commit
434436e82f
1 changed files with 5 additions and 1 deletions
|
@ -1068,7 +1068,11 @@ public class CDebugTarget extends CDebugElement implements ICDebugTarget, ICDIEv
|
|||
disposePreferences();
|
||||
|
||||
ICDITarget cdiTarget = getCDITarget();
|
||||
setCDITarget(null);
|
||||
// TODO: apparently we're not really done with the ICDITarget. The
|
||||
// arrival of a terminate event from gdb requires access to this (see
|
||||
// SessionManager.handleDebugEvent()). Reported by Mikhail. Need to
|
||||
// revisit this.
|
||||
// setCDITarget(null);
|
||||
if (cdiTarget instanceof ICDIDisposable) {
|
||||
((ICDIDisposable)cdiTarget).dispose();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue