summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/RegisterValue.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-03-07 01:12:24 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-03-07 01:12:24 +0000
commitc79c93ad966bed87be3fad1809320ab674be818f (patch)
treeeb9f08629290b7d5eb2ce8864cab6593fb7295db /lldb/source/Core/RegisterValue.cpp
parent205a429891aeaceb6ad36b35f0ccc881031d0988 (diff)
downloadbcm5719-llvm-c79c93ad966bed87be3fad1809320ab674be818f.tar.gz
bcm5719-llvm-c79c93ad966bed87be3fad1809320ab674be818f.zip
rdar://problem/10611315
expression command doesn't handle xmm or stmm registers... o Update ClangASTContext::GetBuiltinTypeForEncodingAndBitSize() to now handle eEncodingVector. o Modify RegisterValue::SetFromMemoryData() to fix the subtle error due to unitialized variables. o Add a test file for "expr $xmm0". llvm-svn: 152190
Diffstat (limited to 'lldb/source/Core/RegisterValue.cpp')
-rw-r--r--lldb/source/Core/RegisterValue.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Core/RegisterValue.cpp b/lldb/source/Core/RegisterValue.cpp
index c474f9323ac..5e3844125b1 100644
--- a/lldb/source/Core/RegisterValue.cpp
+++ b/lldb/source/Core/RegisterValue.cpp
@@ -202,6 +202,9 @@ RegisterValue::SetFromMemoryData (const RegisterInfo *reg_info,
else if (value_type == eTypeBytes)
{
m_data.buffer.byte_order = src_byte_order;
+ // Make sure to set the buffer length of the destination buffer to avoid
+ // problems due to uninitalized variables.
+ m_data.buffer.length = src_len;
}
const uint32_t bytes_copied = src_data.CopyByteOrderedData (0, // src offset
OpenPOWER on IntegriCloud