diff options
| author | Vadim Macagon <vadim.macagon@gmail.com> | 2017-08-09 09:20:40 +0000 |
|---|---|---|
| committer | Vadim Macagon <vadim.macagon@gmail.com> | 2017-08-09 09:20:40 +0000 |
| commit | c10e34d07c90ee0757b6a9aaf7205584ce6d372c (patch) | |
| tree | 03d99c7744fa07d9d000ac17a170a3f13e3c5b5c /lldb/scripts/interface | |
| parent | 9c3deaa6533ddbf8fa5f44c33202dbb9fe368516 (diff) | |
| download | bcm5719-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/scripts/interface')
| -rw-r--r-- | lldb/scripts/interface/SBDebugger.i | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lldb/scripts/interface/SBDebugger.i b/lldb/scripts/interface/SBDebugger.i index db774d350e9..07f049b82ba 100644 --- a/lldb/scripts/interface/SBDebugger.i +++ b/lldb/scripts/interface/SBDebugger.i @@ -247,6 +247,34 @@ public: void SetSelectedPlatform(lldb::SBPlatform &platform); + %feature("docstring", + "Get the number of currently active platforms." + ) GetNumPlatforms; + uint32_t + GetNumPlatforms (); + + %feature("docstring", + "Get one of the currently active platforms." + ) GetPlatformAtIndex; + lldb::SBPlatform + GetPlatformAtIndex (uint32_t idx); + + %feature("docstring", + "Get the number of available platforms." + ) GetNumAvailablePlatforms; + uint32_t + GetNumAvailablePlatforms (); + + %feature("docstring", " + Get the name and description of one of the available platforms. + + @param idx Zero-based index of the platform for which info should be + retrieved, must be less than the value returned by + GetNumAvailablePlatforms(). + ") GetAvailablePlatformInfoAtIndex; + lldb::SBStructuredData + GetAvailablePlatformInfoAtIndex (uint32_t idx); + lldb::SBSourceManager GetSourceManager (); |

