diff options
| author | Jim Ingham <jingham@apple.com> | 2012-10-26 19:18:04 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2012-10-26 19:18:04 +0000 |
| commit | d7b30ef93cab9f58c35ed8c09572dc8defe7e02b (patch) | |
| tree | dd73cccdab7188faff0f50abf96266d8dbb7fdd5 /lldb/source/API/SBProcess.cpp | |
| parent | 197157613c1488f060cec48568497cb567d92b39 (diff) | |
| download | llvm-d7b30ef93cab9f58c35ed8c09572dc8defe7e02b.zip llvm-d7b30ef93cab9f58c35ed8c09572dc8defe7e02b.tar.gz llvm-d7b30ef93cab9f58c35ed8c09572dc8defe7e02b.tar.bz2 | |
Add API to get the process plugin name & short name.
llvm-svn: 166799
Diffstat (limited to 'lldb/source/API/SBProcess.cpp')
| -rw-r--r-- | lldb/source/API/SBProcess.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lldb/source/API/SBProcess.cpp b/lldb/source/API/SBProcess.cpp index e107874..933117a 100644 --- a/lldb/source/API/SBProcess.cpp +++ b/lldb/source/API/SBProcess.cpp @@ -81,6 +81,29 @@ SBProcess::GetBroadcasterClassName () return Process::GetStaticBroadcasterClass().AsCString(); } +const char * +SBProcess::GetPluginName () +{ + ProcessSP process_sp(GetSP()); + if (process_sp) + { + return process_sp->GetPluginName(); + } + return "<Unknown>"; +} + +const char * +SBProcess::GetShortPluginName () +{ + ProcessSP process_sp(GetSP()); + if (process_sp) + { + return process_sp->GetShortPluginName(); + } + return "<Unknown>"; +} + + lldb::ProcessSP SBProcess::GetSP() const { |
