commit | c61349681fa2923bd30ad16afce450a0da6108cf | [log] [tgz] |
---|---|---|
author | Johnny Chen <johnny.chen@apple.com> | Fri Jan 06 00:35:38 2012 +0000 |
committer | Johnny Chen <johnny.chen@apple.com> | Fri Jan 06 00:35:38 2012 +0000 |
tree | c0cf8b4dd52f94ccbd13d05a6e473a63a102fc72 | |
parent | c80dca73893e5b24f4d16c092da75532715b405e [diff] [blame] |
http://llvm.org/bugs/show_bug.cgi?id=11618 lldb::SBValue::AddressOf does not work on dereferenced registers in synthetic children provider Patch submitted by Enrico Granata. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@147637 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangExpressionVariable.cpp b/source/Expression/ClangExpressionVariable.cpp index 9a264eb..ec08a0c 100644 --- a/source/Expression/ClangExpressionVariable.cpp +++ b/source/Expression/ClangExpressionVariable.cpp
@@ -133,3 +133,15 @@ m_frozen_sp->ValueUpdated (); } +void +ClangExpressionVariable::TransferAddress (bool force) +{ + if (m_live_sp.get() == NULL) + return; + + if (m_frozen_sp.get() == NULL) + return; + + if (force || (m_frozen_sp->GetLiveAddress() == LLDB_INVALID_ADDRESS)) + m_frozen_sp->SetLiveAddress(m_live_sp->GetLiveAddress()); +}