diff options
| author | Dawn Perchik <dawn@burble.org> | 2015-09-04 01:02:30 +0000 |
|---|---|---|
| committer | Dawn Perchik <dawn@burble.org> | 2015-09-04 01:02:30 +0000 |
| commit | 009d110de476e6a1c9581b1e57a90dd73593b8aa (patch) | |
| tree | b3c21aba02ef7872b0b88463b77f5a96d9c92ba8 /lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py | |
| parent | b2e9897644383e7e535a3f4465706760b336ca49 (diff) | |
| download | bcm5719-llvm-009d110de476e6a1c9581b1e57a90dd73593b8aa.tar.gz bcm5719-llvm-009d110de476e6a1c9581b1e57a90dd73593b8aa.zip | |
Set the default language to use when evaluating to that of the frame's CU.
* Use the frame's context (instead of just the target's) when evaluating,
so that the language of the frame's CU can be used to select the
compiler and/or compiler options to use when parsing the expression.
This allows for modules built with mixed languages to be parsed in
the context of their frame.
* Add all C and C++ language variants when determining the language options
to set.
* Enable C++ language options when language is C or ObjC as a workaround since
the expression parser uses features of C++ to capture values.
* Enable ObjC language options when language is C++ as a workaround for ObjC
requirements.
* Disable C++11 language options when language is C++03.
* Add test TestMixedLanguages.py to check that the language being used
for evaluation is that of the frame.
* Fix test TestExprOptions.py to check for C++11 instead of C++ since C++ has
to be enabled for C, and remove redundant expr --language test for ObjC.
* Fix TestPersistentPtrUpdate.py to not require C++11 in C.
Reviewed by: clayborg, spyffe, jingham
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D11102
llvm-svn: 246829
Diffstat (limited to 'lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py')
| -rw-r--r-- | lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py b/lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py index 9c291219529..af21086c006 100644 --- a/lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py +++ b/lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py @@ -42,7 +42,7 @@ class PersistentPtrUpdateTestCase(TestBase): self.runCmd("run", RUN_SUCCEEDED) - self.runCmd("expr void* $foo = nullptr") + self.runCmd("expr void* $foo = 0") self.runCmd("continue") |

