Add API to get the process plugin name & short name.

llvm-svn: 166799
This commit is contained in:
Jim Ingham
2012-10-26 19:18:04 +00:00
parent 197157613c
commit d7b30ef93c
3 changed files with 35 additions and 0 deletions

View File

@@ -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
{