From: Lang Hames Date: Thu, 26 Jun 2014 23:05:44 +0000 (+0000) Subject: [RuntimeDyld] Teach MachOObjectImage to deregister itself with the debugger upon X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9bd578efeab3b521ba37dd7706dc8f3a98ddb4bd;p=oota-llvm.git [RuntimeDyld] Teach MachOObjectImage to deregister itself with the debugger upon destruction the same way ELFObjectImage does. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211815 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp index 5b96371880b..71b914d4905 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp @@ -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