Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] [DSF] AbstractDMContext.fSessionId

I have been looking into  

	https://bugs.eclipse.org/bugs/show_bug.cgi?id=293109

which say that "Terminate and Relaunch" is broken because, in essense:

- AbstractDMContext.getAdapter uses fSessionId to get session
- Association between session id and Session is held by DsfSession and
is removed when GdbLaunch.shutdownSession calls DsfSession.endSession.

While there are different ways to fix the problem, the first question is why
AbstractDMContext actually uses session id, as opposed to having a reference
to DsfSession? While such reference may delay garbage-collection of DsfSession
a bit, is that a problem? Or there's any other reason?

Thanks,
Volodya




Back to the top