[MCJIT] Re-enable GDB registration (temporarily disabled in r222811), but check
[oota-llvm.git] / lib / ExecutionEngine / MCJIT / MCJIT.cpp
index 490fbb3df99e5d8010a44ae933bff746fe8b432b..58cf4e5e6dd8c23c88cc4de678c24079ba4ff4f0 100644 (file)
@@ -75,6 +75,7 @@ MCJIT::MCJIT(std::unique_ptr<Module> M, std::unique_ptr<TargetMachine> tm,
 
   OwnedModules.addModule(std::move(First));
   setDataLayout(TM->getSubtargetImpl()->getDataLayout());
+  RegisterJITEventListener(JITEventListener::createGDBRegistrationListener());
 }
 
 MCJIT::~MCJIT() {