summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBData.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-03-03 20:57:05 +0000
committerZachary Turner <zturner@google.com>2017-03-03 20:57:05 +0000
commit29cb868aa4d0279449b56288fde0358adade1a68 (patch)
tree697a72f9a7f9f37b5715cd75eb0b164216fcce6e /lldb/source/API/SBData.cpp
parent6f9e690199edd68b20bac92983a216459bc568ed (diff)
downloadbcm5719-llvm-29cb868aa4d0279449b56288fde0358adade1a68.tar.gz
bcm5719-llvm-29cb868aa4d0279449b56288fde0358adade1a68.zip
Isolate Target-specific functionality of DataExtractor.
In an effort to move the various DataBuffer / DataExtractor classes from Core -> Utility, we have to separate the low-level functionality from the higher level functionality. Only a few functions required anything other than reading/writing raw bytes, so those functions are separated out into a more appropriate area. Specifically, Dump() and DumpHexBytes() are moved into free functions in Core/DumpDataExtractor.cpp, and GetGNUEHPointer is moved into a static function in the only file that it's referenced from. Differential Revision: https://reviews.llvm.org/D30560 llvm-svn: 296910
Diffstat (limited to 'lldb/source/API/SBData.cpp')
-rw-r--r--lldb/source/API/SBData.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/API/SBData.cpp b/lldb/source/API/SBData.cpp
index 64c5a94d2a3..e7da2cb8d2b 100644
--- a/lldb/source/API/SBData.cpp
+++ b/lldb/source/API/SBData.cpp
@@ -15,6 +15,7 @@
#include "lldb/Core/DataBufferHeap.h"
#include "lldb/Core/DataExtractor.h"
+#include "lldb/Core/DumpDataExtractor.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/Stream.h"
@@ -347,7 +348,7 @@ bool SBData::GetDescription(lldb::SBStream &description,
Stream &strm = description.ref();
if (m_opaque_sp) {
- m_opaque_sp->Dump(&strm, 0, lldb::eFormatBytesWithASCII, 1,
+ DumpDataExtractor(*m_opaque_sp, &strm, 0, lldb::eFormatBytesWithASCII, 1,
m_opaque_sp->GetByteSize(), 16, base_addr, 0, 0);
} else
strm.PutCString("No value");
OpenPOWER on IntegriCloud