Community
Participate
Working Groups
The Logging service and console manager has some flakiness since it associates a TCF channel with a console, but the channel's lifetime is not fully contained within the console's lifetime. First, the console log manager assumes the TCF channel has the exact same lifetime as the debug session. But there is no guarantee the channel is open yet, or that it is reopened on every launch. Also, the logging proxy's listener list does not prevent the same listener from being added more than once, as is usual in listener implementations. Finally, the console log manager for a channel is not cleaned up if a console is re-registered. Thus, leftover managers can be left behind.
Fixed on HEAD.
*** cdt cvs genie on behalf of eswartz *** Bug 319863: fix issues with logging service, channel, and console lifetimes [*] ConsoleLogManager.java 1.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/edc/org.eclipse.cdt.debug.edc.ui/src/org/eclipse/cdt/debug/edc/ui/console/ConsoleLogManager.java?root=Tools_Project&r1=1.1&r2=1.2 [*] AbstractLoggingConsoleFactory.java 1.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/edc/org.eclipse.cdt.debug.edc.ui/src/org/eclipse/cdt/debug/edc/ui/console/AbstractLoggingConsoleFactory.java?root=Tools_Project&r1=1.1&r2=1.2 [*] LoggingProxy.java 1.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/edc/org.eclipse.cdt.debug.edc.tcf.extension/src/org/eclipse/cdt/debug/edc/tcf/extension/services/LoggingProxy.java?root=Tools_Project&r1=1.1&r2=1.2