diff options
author | Alex Langford <apl@fb.com> | 2019-06-12 17:47:06 +0000 |
---|---|---|
committer | Alex Langford <apl@fb.com> | 2019-06-12 17:47:06 +0000 |
commit | 5b99928ba88a3331ad4626b401c8f4ffdf3b1b99 (patch) | |
tree | 785753e2bcf6bfbd9bb4abd8a10ffcd838926a32 /lldb/packages/Python/lldbsuite | |
parent | 8f4973f57b0cfd35f9ebbe9c48d54274795e04d1 (diff) | |
download | bcm5719-llvm-5b99928ba88a3331ad4626b401c8f4ffdf3b1b99.tar.gz bcm5719-llvm-5b99928ba88a3331ad4626b401c8f4ffdf3b1b99.zip |
[Expression] Add PersistentExpressionState::GetCompilerTypeFromPersistentDecl
Summary:
PersistentStateExpressions (e.g. ClangPersistentVariables) have the
ability to define types using expressions that persist throughout the
debugging session. GetCompilerTypeFromPersistentDecl is a useful
operation to have if you need to use any of those persistently declared types,
like in CommandObjectMemory.
This decouples clang from CommandObjectMemory and decouples Plugins from
Commands in general.
Differential Revision: https://reviews.llvm.org/D62797
llvm-svn: 363183
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/expression_command/persistent_types/TestPersistentTypes.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/persistent_types/TestPersistentTypes.py b/lldb/packages/Python/lldbsuite/test/expression_command/persistent_types/TestPersistentTypes.py index 403d24246a9..63d8c227a55 100644 --- a/lldb/packages/Python/lldbsuite/test/expression_command/persistent_types/TestPersistentTypes.py +++ b/lldb/packages/Python/lldbsuite/test/expression_command/persistent_types/TestPersistentTypes.py @@ -56,6 +56,16 @@ class PersistenttypesTestCase(TestBase): "d = 'l'"]) # persistent types are OK to use for memory read self.expect( + "memory read foo -t $foobar -x c", + substrs=[ + '($foobar) 0x', + ' = ', + "a = 'H'", + "b = 'e'", + "c = 'l'", + "d = 'l'"]) # persistent types are OK to use for memory read + + self.expect( "memory read foo -t foobar", substrs=[ '($foobar) 0x', |