summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-07-16 00:09:46 +0000
committerSean Callanan <scallanan@apple.com>2010-07-16 00:09:46 +0000
commitea22d4288a5310894a9f9dbb7b918aa560554bf9 (patch)
treee14e8b050940d8e1595162f31f4db90d24fe2610 /lldb/source/Commands/CommandObjectExpression.cpp
parentbfd4fd7bb751632bdd3154e79af6095765cbf714 (diff)
downloadbcm5719-llvm-ea22d4288a5310894a9f9dbb7b918aa560554bf9.tar.gz
bcm5719-llvm-ea22d4288a5310894a9f9dbb7b918aa560554bf9.zip
Wrote the code that looks at a context to see
if the variables in that context allow a particular JIT compiled expression to run in that context. llvm-svn: 108485
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectExpression.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp
index 56f97fb4027..e3f2baab51a 100644
--- a/lldb/source/Commands/CommandObjectExpression.cpp
+++ b/lldb/source/Commands/CommandObjectExpression.cpp
@@ -304,8 +304,22 @@ CommandObjectExpression::EvaluateExpression (const char *expr, bool bare, Stream
return false;
}
- log->Printf("Function is at 0x%llx", (uint64_t)function_address);
+ Error err;
+
+ lldb::addr_t struct_address = expr_decl_map.Materialize(&m_exe_ctx, err);
+
+ if (struct_address == LLDB_INVALID_ADDRESS)
+ {
+ error_stream.Printf ("Couldn't materialize struct: %s\n", err.AsCString("unknown error"));
+ return false;
+ }
+
+ log->Printf("Function address : 0x%llx", (uint64_t)function_address);
+ log->Printf("Structure address : 0x%llx", (uint64_t)struct_address);
}
+
+ return true;
+
}
else
{
OpenPOWER on IntegriCloud