[Lldb-commits] [PATCH] Add Initialize/Terminate method to Platform base plugin
Tamas Berghammer
tberghammer at google.com
Thu Feb 12 07:30:31 PST 2015
Hi vharron, clayborg,
Add Initialize/Terminate method to Platform base plugin
The platform base plugin holds a smart pointer to each platform object created in a static variable what cause the platform destructors called only on program exit when other static variables are already destructed. With this change the destructors are called by lldb_private::Terminate() before the exit of the program.
+ Fix DebuggerRefCount handling in ScriptInterpreterPython
The issue pop out during the investigation of a resource leak (port forwards) in platform android caused by the fact that a static variable in Socket.cpp is destructed earlier then an instance of PlatformAndroid.
http://reviews.llvm.org/D7590
Files:
include/lldb/Target/Platform.h
source/Interpreter/ScriptInterpreterPython.cpp
source/Plugins/Platform/Android/PlatformAndroid.cpp
source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp
source/Plugins/Platform/Kalimba/PlatformKalimba.cpp
source/Plugins/Platform/Linux/PlatformLinux.cpp
source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp
source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp
source/Plugins/Platform/MacOSX/PlatformiOSSimulator.cpp
source/Plugins/Platform/Windows/PlatformWindows.cpp
source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
source/Target/Platform.cpp
source/lldb.cpp
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7590.19830.patch
Type: text/x-patch
Size: 9422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150212/b4eb4488/attachment.bin>
More information about the lldb-commits
mailing list