summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBValue.cpp
diff options
context:
space:
mode:
authorEnrico Granata <granata.enrico@gmail.com>2011-08-02 23:12:24 +0000
committerEnrico Granata <granata.enrico@gmail.com>2011-08-02 23:12:24 +0000
commitd8b5fce230a7c5cfea882cccd7d403c964c8b1b5 (patch)
tree2baafd2a61138bc362f3ad49a86f5b0ad7ee746f /lldb/source/API/SBValue.cpp
parent3c14505164fd0b2111e6906ca3671b55e87b18f6 (diff)
downloadbcm5719-llvm-d8b5fce230a7c5cfea882cccd7d403c964c8b1b5.tar.gz
bcm5719-llvm-d8b5fce230a7c5cfea882cccd7d403c964c8b1b5.zip
bug fix in SBValue::CreateValueFromAddress() where using the resulting VO as a pointer would crash LLDB ; minor improvements in dynamic formatters lookup
llvm-svn: 136743
Diffstat (limited to 'lldb/source/API/SBValue.cpp')
-rw-r--r--lldb/source/API/SBValue.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp
index 229eba5f5d6..2973457f0d6 100644
--- a/lldb/source/API/SBValue.cpp
+++ b/lldb/source/API/SBValue.cpp
@@ -457,6 +457,7 @@ SBValue::CreateValueFromAddress(const char* name, lldb::addr_t address, const SB
GetTarget().GetProcess().GetAddressByteSize()));
result_valobj_sp->SetName(ConstString(name));
+ result_valobj_sp->GetValue().SetValueType(Value::eValueTypeLoadAddress);
result = SBValue(result_valobj_sp);
}
LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
OpenPOWER on IntegriCloud