diff options
| author | Sean Callanan <scallanan@apple.com> | 2014-02-28 22:27:53 +0000 |
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2014-02-28 22:27:53 +0000 |
| commit | 866e91c9d44428b41089932506ab985a571ca0e1 (patch) | |
| tree | 2da4e9dda29ea1484cdd097df995f8675c8c98b2 /lldb/source/API/SBValue.cpp | |
| parent | 525a21237927b95f1afc8205c5e06388e145c696 (diff) | |
| download | bcm5719-llvm-866e91c9d44428b41089932506ab985a571ca0e1.tar.gz bcm5719-llvm-866e91c9d44428b41089932506ab985a571ca0e1.zip | |
Better error reporting when a variable can't be
read during materialization. First of all, report
if we can't read the data for some reason. Second,
consult the ValueObject's error and report that if
there's some problem.
<rdar://problem/16074201>
llvm-svn: 202552
Diffstat (limited to 'lldb/source/API/SBValue.cpp')
| -rw-r--r-- | lldb/source/API/SBValue.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp index 4bd018352ff..c379508ab05 100644 --- a/lldb/source/API/SBValue.cpp +++ b/lldb/source/API/SBValue.cpp @@ -1569,8 +1569,9 @@ SBValue::GetData () if (value_sp) { DataExtractorSP data_sp(new DataExtractor()); - value_sp->GetData(*data_sp); - if (data_sp->GetByteSize() > 0) + Error error; + value_sp->GetData(*data_sp, error); + if (error.Success()) *sb_data = data_sp; } if (log) |

