Adding "-n", "-p" and "-w" flags to the lldb command-line tool to

allow attaching from the command line.

llvm-svn: 139665
This commit is contained in:
Jim Ingham
2011-09-13 23:25:31 +00:00
parent 0378726aed
commit e64f0dc7bf
5 changed files with 134 additions and 16 deletions

View File

@@ -166,6 +166,15 @@ SBDebugger::SetAsync (bool b)
m_opaque_sp->SetAsyncExecution(b);
}
bool
SBDebugger::GetAsync ()
{
if (m_opaque_sp)
return m_opaque_sp->GetAsyncExecution();
else
return false;
}
void
SBDebugger::SkipLLDBInitFiles (bool b)
{
@@ -641,6 +650,24 @@ SBDebugger::GetSelectedTarget ()
return sb_target;
}
void
SBDebugger::SetSelectedTarget (SBTarget &sb_target)
{
LogSP log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
if (m_opaque_sp)
{
m_opaque_sp->GetTargetList().SetSelectedTarget (sb_target.get());
}
if (log)
{
SBStream sstr;
sb_target.GetDescription (sstr, eDescriptionLevelBrief);
log->Printf ("SBDebugger(%p)::SetSelectedTarget () => SBTarget(%p): %s", m_opaque_sp.get(),
sb_target.get(), sstr.GetData());
}
}
void
SBDebugger::DispatchInput (void *baton, const void *data, size_t data_len)
{