diff options
author | Ilia K <ki.stfu@gmail.com> | 2015-02-06 18:10:30 +0000 |
---|---|---|
committer | Ilia K <ki.stfu@gmail.com> | 2015-02-06 18:10:30 +0000 |
commit | 761a7a4b67398dda048c97bc7c32d4c19e2f2805 (patch) | |
tree | 886fc2a020c4188098b717754c23dac6e06a8968 /lldb/source/API | |
parent | 3ffb61b4ae9ce7f1566f6540d508d084c5b7d510 (diff) | |
download | bcm5719-llvm-761a7a4b67398dda048c97bc7c32d4c19e2f2805.tar.gz bcm5719-llvm-761a7a4b67398dda048c97bc7c32d4c19e2f2805.zip |
Fix evaluation commands (MI)
Summary:
These changes include:
* Fix -var-create to be able use current frame '*' (MI)
* Fix print-values option in -var-update (MI)
* Fix 'variable doesn't exist' error in -var-show-attributes (MI)
* Mark print-values option as 'handled-by-cmd' in -var-update (MI)
* Fix SBValue::GetValueDidChange if value was changed
* Fix lldb-mi: -data-evaluate-expression shows undef vars. Before this fix -data-evaluate-expression perceives undefined variables as strings:
```
(gdb)
-data-evaluate-expression undef
^done,value="undef"
```
* Minor fix: -data-evaluate-expression uses IsUnknownValue()
* Enable MiEvaluateTestCase test
All test pass on OS X.
Reviewers: abidh, clayborg
Subscribers: lldb-commits, clayborg, abidh
Differential Revision: http://reviews.llvm.org/D7463
llvm-svn: 228414
Diffstat (limited to 'lldb/source/API')
-rw-r--r-- | lldb/source/API/SBValue.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp index 0d3d7ad956e..edecb93944a 100644 --- a/lldb/source/API/SBValue.cpp +++ b/lldb/source/API/SBValue.cpp @@ -608,7 +608,8 @@ SBValue::GetValueDidChange () lldb::ValueObjectSP value_sp(GetSP(locker)); if (value_sp) { - result = value_sp->GetValueDidChange (); + if (value_sp->UpdateValueIfNeeded(false)) + result = value_sp->GetValueDidChange (); } if (log) log->Printf ("SBValue(%p)::GetValueDidChange() => %i", |