Fixed an issue with:
(lldb) frame variable --location
Where the address of variables wasn't being formatted consistently.
llvm-svn: 114266
diff --git a/lldb/source/Core/ValueObjectVariable.cpp b/lldb/source/Core/ValueObjectVariable.cpp
index 86cc46d..bba4ba1 100644
--- a/lldb/source/Core/ValueObjectVariable.cpp
+++ b/lldb/source/Core/ValueObjectVariable.cpp
@@ -105,6 +105,13 @@
DWARFExpression &expr = variable->LocationExpression();
lldb::addr_t loclist_base_load_addr = LLDB_INVALID_ADDRESS;
ExecutionContext exe_ctx (exe_scope);
+
+ if (exe_ctx.process)
+ {
+ m_data.SetByteOrder(exe_ctx.process->GetByteOrder());
+ m_data.SetAddressByteSize(exe_ctx.process->GetAddressByteSize());
+ }
+
if (expr.IsLocationList())
{
SymbolContext sc;