diff options
author | Greg Clayton <gclayton@apple.com> | 2010-10-05 00:00:42 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-10-05 00:00:42 +0000 |
commit | 1d3afba3a3625da15c03cddd88844167e11c440a (patch) | |
tree | 5dbe98282aa04515ce59c43f5bbc5e33ae584e97 /lldb/source/Core/DataExtractor.cpp | |
parent | 668523a1b86333ff63a0e1d8da413e685fc10adc (diff) | |
download | bcm5719-llvm-1d3afba3a3625da15c03cddd88844167e11c440a.tar.gz bcm5719-llvm-1d3afba3a3625da15c03cddd88844167e11c440a.zip |
Added a new ValueObject type that will be used to freeze dry expression
results. The clang opaque type for the expression result will be added to the
Target's ASTContext, and the bytes will be stored in a DataBuffer inside
the new object. The class is named: ValueObjectConstResult
Now after an expression is evaluated, we can get a ValueObjectSP back that
contains a ValueObjectConstResult object.
Relocated the value object dumping code into a static function within
the ValueObject class instead of being in the CommandObjectFrame.cpp file
which is what contained the code to dump variables ("frame variables").
llvm-svn: 115578
Diffstat (limited to 'lldb/source/Core/DataExtractor.cpp')
-rw-r--r-- | lldb/source/Core/DataExtractor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/DataExtractor.cpp b/lldb/source/Core/DataExtractor.cpp index 3ae4bec76a2..e75a1c6738b 100644 --- a/lldb/source/Core/DataExtractor.cpp +++ b/lldb/source/Core/DataExtractor.cpp @@ -93,7 +93,7 @@ DataExtractor::DataExtractor (const void* data, uint32_t length, ByteOrder endia // as long as any DataExtractor objects exist that have a reference to // this data. //---------------------------------------------------------------------- -DataExtractor::DataExtractor (DataBufferSP& data_sp, ByteOrder endian, uint8_t addr_size) : +DataExtractor::DataExtractor (const DataBufferSP& data_sp, ByteOrder endian, uint8_t addr_size) : m_start (NULL), m_end (NULL), m_byte_order(endian), @@ -370,7 +370,7 @@ DataExtractor::SetData (const DataExtractor& data, uint32_t data_offset, uint32_ // settings will remain unchanged from their current settings. //---------------------------------------------------------------------- uint32_t -DataExtractor::SetData (DataBufferSP& data_sp, uint32_t data_offset, uint32_t data_length) +DataExtractor::SetData (const DataBufferSP& data_sp, uint32_t data_offset, uint32_t data_length) { m_start = m_end = NULL; |