summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/DataExtractor.cpp
diff options
context:
space:
mode:
authorEwan Crawford <ewan@codeplay.com>2015-10-14 09:02:20 +0000
committerEwan Crawford <ewan@codeplay.com>2015-10-14 09:02:20 +0000
commit838e7bbf1f6aede97d49eedeb8a0c909e4715a2d (patch)
tree2e497369e10fa355f9c19bf6dae71ed58d069fb4 /lldb/source/Core/DataExtractor.cpp
parent6934ef31e8d98513c14247a852cc9b49bcca3dd6 (diff)
downloadbcm5719-llvm-838e7bbf1f6aede97d49eedeb8a0c909e4715a2d.tar.gz
bcm5719-llvm-838e7bbf1f6aede97d49eedeb8a0c909e4715a2d.zip
RenderScript command for printing allocation contents
This patch adds the command 'language renderscript allocation dump <ID>' for printing the contents of a RS allocation. Displaying the coordinate of each element as well as its formatted value e.g (lldb) language renderscript allocation dump 1 Data (X, Y, Z): (0, 0, 0) = {0 1} (1, 0, 0) = {2 3} (2, 0, 0) = {4 5} A --file <filename> option is also included, since for large allocations it may be more helpful to view this text as a file. Reviewed by: jingham, clayborg Subscribers: lldb-commits, ADodds, domipheus, brucem Differential Revision: http://reviews.llvm.org/D13699 llvm-svn: 250281
Diffstat (limited to 'lldb/source/Core/DataExtractor.cpp')
-rw-r--r--lldb/source/Core/DataExtractor.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Core/DataExtractor.cpp b/lldb/source/Core/DataExtractor.cpp
index 7dc573c55eb..9e447983301 100644
--- a/lldb/source/Core/DataExtractor.cpp
+++ b/lldb/source/Core/DataExtractor.cpp
@@ -2012,6 +2012,12 @@ DataExtractor::Dump (Stream *s,
s->PutChar('}');
break;
+ case eFormatVectorOfFloat16:
+ s->PutChar('{');
+ offset = Dump (s, offset, eFormatFloat, 2, item_byte_size / 2, item_byte_size / 2, LLDB_INVALID_ADDRESS, 0, 0);
+ s->PutChar('}');
+ break;
+
case eFormatVectorOfFloat32:
s->PutChar('{');
offset = Dump (s, offset, eFormatFloat, 4, item_byte_size / 4, item_byte_size / 4, LLDB_INVALID_ADDRESS, 0, 0);
OpenPOWER on IntegriCloud