1
0
Fork 0
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:
John Cortell 2008-08-11 14:49:50 +00:00
parent 1efd4082c4
commit 434436e82f

View file

@ -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();
}