[llvm] r211815 - [RuntimeDyld] Teach MachOObjectImage to deregister itself with the debugger upon
Lang Hames
lhames at gmail.com
Thu Jun 26 16:05:45 PDT 2014
Author: lhames
Date: Thu Jun 26 18:05:44 2014
New Revision: 211815
URL: http://llvm.org/viewvc/llvm-project?rev=211815&view=rev
Log:
[RuntimeDyld] Teach MachOObjectImage to deregister itself with the debugger upon
destruction the same way ELFObjectImage does.
Modified:
llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp?rev=211815&r1=211814&r2=211815&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp Thu Jun 26 18:05:44 2014
@@ -65,7 +65,10 @@ public:
initOldAddress();
}
- virtual ~MachOObjectImage() {}
+ virtual ~MachOObjectImage() {
+ if (Registered)
+ deregisterWithDebugger();
+ }
// Subclasses can override these methods to update the image with loaded
// addresses for sections and common symbols
More information about the llvm-commits
mailing list