summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/RegisterValue.cpp
diff options
context:
space:
mode:
authorAshok Thirumurthi <ashok.thirumurthi@intel.com>2013-03-28 17:27:40 +0000
committerAshok Thirumurthi <ashok.thirumurthi@intel.com>2013-03-28 17:27:40 +0000
commit4f5f39ac4ca50bae844a70b2d281afd056c6137a (patch)
treedd47e224926ddfd18d3492a6d0bf6a03dfd0368f /lldb/source/Core/RegisterValue.cpp
parentda0a3267026006c27168f176d3c8a4c10198b4d7 (diff)
downloadbcm5719-llvm-4f5f39ac4ca50bae844a70b2d281afd056c6137a.tar.gz
bcm5719-llvm-4f5f39ac4ca50bae844a70b2d281afd056c6137a.zip
Introduces extended register sets whose availability can vary with the target processor.
- Includes a stub for AVX support in the x86-64 register context and a failing test for register sets that are unavailable. Thanks to Greg Clayton for his review feedback. llvm-svn: 178252
Diffstat (limited to 'lldb/source/Core/RegisterValue.cpp')
-rw-r--r--lldb/source/Core/RegisterValue.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Core/RegisterValue.cpp b/lldb/source/Core/RegisterValue.cpp
index ab24567ba12..16559e2b478 100644
--- a/lldb/source/Core/RegisterValue.cpp
+++ b/lldb/source/Core/RegisterValue.cpp
@@ -981,12 +981,11 @@ RegisterValue::SetBytes (const void *bytes, size_t length, lldb::ByteOrder byte_
// m_data.buffer.bytes, or make it something that is allocated on
// the heap. Since the data buffer is in a union, we can't make it
// a collection class like SmallVector...
- assert (length <= sizeof (m_data.buffer.bytes));
if (bytes && length > 0)
{
+ assert (length <= sizeof (m_data.buffer.bytes) && "Storing too many bytes in a RegisterValue.");
m_type = eTypeBytes;
m_data.buffer.length = length;
- assert (length <= sizeof (m_data.buffer.bytes));
memcpy (m_data.buffer.bytes, bytes, length);
m_data.buffer.byte_order = byte_order;
}
OpenPOWER on IntegriCloud