diff options
author | Ewan Crawford <ewan@codeplay.com> | 2015-12-17 11:59:47 +0000 |
---|---|---|
committer | Ewan Crawford <ewan@codeplay.com> | 2015-12-17 11:59:47 +0000 |
commit | 37395ad211e607d6f366cc98c8685aea812de8a7 (patch) | |
tree | 6b4ea32a0f6c30fac17e77b748a2027c9c1e2053 /lldb/source/Core/ValueObject.cpp | |
parent | 23f04fd469d7a05de41bdb66d0bd23d2d0dbca61 (diff) | |
download | bcm5719-llvm-37395ad211e607d6f366cc98c8685aea812de8a7.tar.gz bcm5719-llvm-37395ad211e607d6f366cc98c8685aea812de8a7.zip |
Inspect DW_AT_const_value global static const variables
This patch adds support for printing global static const variables which are given a DW_AT_const_value DWARF tag by clang.
Fix for bug https://llvm.org/bugs/show_bug.cgi?id=25653
Reviewers: clayborg, tberghammer
Subscribers: emaste, lldb-commits
Differential Revision: http://reviews.llvm.org/D15576
llvm-svn: 255887
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
-rw-r--r-- | lldb/source/Core/ValueObject.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index fa3f1ff76db..a2bebcae6d7 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -1135,6 +1135,7 @@ ValueObject::GetData (DataExtractor& data, Error &error) if (m_data.GetByteSize()) { data = m_data; + error.Clear(); return data.GetByteSize(); } else |