summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2014-06-26 23:05:44 +0000
committerLang Hames <lhames@gmail.com>2014-06-26 23:05:44 +0000
commitad6324f78be6f74d67dea5d378c1ddb0d795bebe (patch)
tree40a9b3268196eaa9112b41e722353c41da1c496e
parente69170a11079504e1b20ec79296925f295dc01c0 (diff)
downloadbcm5719-llvm-ad6324f78be6f74d67dea5d378c1ddb0d795bebe.tar.gz
bcm5719-llvm-ad6324f78be6f74d67dea5d378c1ddb0d795bebe.zip
[RuntimeDyld] Teach MachOObjectImage to deregister itself with the debugger upon
destruction the same way ELFObjectImage does. llvm-svn: 211815
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
index 5b96371880b..71b914d4905 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud