mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 04:17:17 +08:00
Add API to get the process plugin name & short name.
llvm-svn: 166799
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user