summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-07-23 22:19:18 +0000
committerSean Callanan <scallanan@apple.com>2010-07-23 22:19:18 +0000
commit289e07b9d0de69cb956ebb12a57fd554b87adaa3 (patch)
treef693940340b7e618373601608595618f07d77a84 /lldb/source/Commands/CommandObjectExpression.cpp
parentd65cd1d581d6bee9b62374df2b2be50b20e796d8 (diff)
downloadbcm5719-llvm-289e07b9d0de69cb956ebb12a57fd554b87adaa3.tar.gz
bcm5719-llvm-289e07b9d0de69cb956ebb12a57fd554b87adaa3.zip
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. llvm-svn: 109278
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectExpression.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp
index 75cec780962..cd5c8f34efb 100644
--- a/lldb/source/Commands/CommandObjectExpression.cpp
+++ b/lldb/source/Commands/CommandObjectExpression.cpp
@@ -334,6 +334,17 @@ CommandObjectExpression::EvaluateExpression (const char *expr, bool bare, Stream
{
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 =
OpenPOWER on IntegriCloud