Added logging:
- When we JIT an expression, we print the disassembly
  of the generated code
- When we put the structure into the target, we print
  the individual entries in the structure byte for
  byte.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@109278 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectExpression.cpp b/source/Commands/CommandObjectExpression.cpp
index 75cec78..cd5c8f3 100644
--- a/source/Commands/CommandObjectExpression.cpp
+++ b/source/Commands/CommandObjectExpression.cpp
@@ -334,6 +334,17 @@
                 {
                     log->Printf("Function disassembly:\n%s", insns.GetData());
                 }
+                
+                StreamString args;
+                
+                if (!expr_decl_map.DumpMaterializedStruct(&m_exe_ctx, args, err))
+                {
+                    log->Printf("Couldn't extract variable values : %s", err.AsCString("unknown error"));
+                }
+                else
+                {
+                    log->Printf("Structure contents:\n%s", args.GetData());
+                }
             }
                         
             ClangFunction::ExecutionResults execution_result =