summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
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