summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api
diff options
context:
space:
mode:
authorVadim Macagon <vadim.macagon@gmail.com>2017-08-09 09:20:40 +0000
committerVadim Macagon <vadim.macagon@gmail.com>2017-08-09 09:20:40 +0000
commitc10e34d07c90ee0757b6a9aaf7205584ce6d372c (patch)
tree03d99c7744fa07d9d000ac17a170a3f13e3c5b5c /lldb/packages/Python/lldbsuite/test/python_api
parent9c3deaa6533ddbf8fa5f44c33202dbb9fe368516 (diff)
downloadbcm5719-llvm-c10e34d07c90ee0757b6a9aaf7205584ce6d372c.tar.gz
bcm5719-llvm-c10e34d07c90ee0757b6a9aaf7205584ce6d372c.zip
Expose active and available platform lists via SBDebugger API
Summary: The available platform list was previously only accessible via the `platform list` command, this patch makes it possible to access that list via the SBDebugger API. The active platform list has likewise been exposed via the SBDebugger API. Differential Revision: https://reviews.llvm.org/D35760 llvm-svn: 310452
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/default-constructor/sb_debugger.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/default-constructor/sb_debugger.py b/lldb/packages/Python/lldbsuite/test/python_api/default-constructor/sb_debugger.py
index 77e45c861e8..ac0f9a8aeb9 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/default-constructor/sb_debugger.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/default-constructor/sb_debugger.py
@@ -30,6 +30,10 @@ def fuzz_obj(obj):
obj.FindTargetWithFileAndArch("a.out", "arm")
obj.GetNumTargets()
obj.GetSelectedTarget()
+ obj.GetNumPlatforms()
+ obj.GetPlatformAtIndex(0xffffffff)
+ obj.GetNumAvailablePlatforms()
+ obj.GetAvailablePlatformInfoAtIndex(0xffffffff)
obj.GetSourceManager()
obj.SetSelectedTarget(lldb.SBTarget())
obj.SetCurrentPlatformSDKRoot("tmp/sdk-root")
OpenPOWER on IntegriCloud