[ORC] Add extra debugging output to OrcRemoteTargetServer.
authorLang Hames <lhames@gmail.com>
Wed, 13 Jan 2016 06:34:57 +0000 (06:34 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 13 Jan 2016 06:34:57 +0000 (06:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257577 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h

index d416ffd..5247661 100644 (file)
@@ -400,10 +400,14 @@ private:
 
   std::error_code handleWriteMem(TargetAddress RDst, uint64_t Size) {
     char *Dst = reinterpret_cast<char *>(static_cast<uintptr_t>(RDst));
+    DEBUG(dbgs() << "  Writing " << Size << " bytes to "
+                 << format("0x%016x", RDst) << "\n");
     return Channel.readBytes(Dst, Size);
   }
 
   std::error_code handleWritePtr(TargetAddress Addr, TargetAddress PtrVal) {
+    DEBUG(dbgs() << "  Writing pointer *" << format("0x%016x", Addr) << " = "
+                 << format("0x%016x", PtrVal) << "\n");
     uintptr_t *Ptr =
         reinterpret_cast<uintptr_t *>(static_cast<uintptr_t>(Addr));
     *Ptr = static_cast<uintptr_t>(PtrVal);