[MCJIT] Re-enable GDB registration (temporarily disabled in r222811), but check
authorLang Hames <lhames@gmail.com>
Wed, 26 Nov 2014 07:39:03 +0000 (07:39 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 26 Nov 2014 07:39:03 +0000 (07:39 +0000)
commit7cacb9b54057f7a368ed9788799c06264baddb20
tree8047b32cd51271d747ad867673136cf4b1b13be1
parent08a01ae3728e8896129cc6057ca2895d4e70b8e6
[MCJIT] Re-enable GDB registration (temporarily disabled in r222811), but check
that we actually have an object to register first.

For MachO objects, RuntimeDyld::LoadedObjectInfo::getObjectForDebug returns an
empty OwningBinary<ObjectFile> which was causing crashes in the GDB registration
code.

llvm-svn: 222812
llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
llvm/lib/ExecutionEngine/RuntimeDyld/GDBRegistrationListener.cpp