Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
lldb/source/API/SBDebugger.cpp
Show First 20 Lines • Show All 461 Lines • ▼ Show 20 Lines | if (m_opaque_sp) { | ||||
if (target_sp) | if (target_sp) | ||||
lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); | lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); | ||||
SBCommandInterpreter sb_interpreter(GetCommandInterpreter()); | SBCommandInterpreter sb_interpreter(GetCommandInterpreter()); | ||||
SBCommandReturnObject result; | SBCommandReturnObject result; | ||||
sb_interpreter.HandleCommand(command, result, false); | sb_interpreter.HandleCommand(command, result, false); | ||||
if (GetErrorFileHandle() != nullptr) | result.PutError(m_opaque_sp->GetErrorStream().GetFileSP()); | ||||
result.PutError(GetErrorFile()); | result.PutOutput(m_opaque_sp->GetOutputStream().GetFileSP()); | ||||
if (GetOutputFileHandle() != nullptr) | |||||
result.PutOutput(GetOutputFile()); | |||||
if (!m_opaque_sp->GetAsyncExecution()) { | if (!m_opaque_sp->GetAsyncExecution()) { | ||||
SBProcess process(GetCommandInterpreter().GetProcess()); | SBProcess process(GetCommandInterpreter().GetProcess()); | ||||
ProcessSP process_sp(process.GetSP()); | ProcessSP process_sp(process.GetSP()); | ||||
if (process_sp) { | if (process_sp) { | ||||
EventSP event_sp; | EventSP event_sp; | ||||
ListenerSP lldb_listener_sp = m_opaque_sp->GetListener(); | ListenerSP lldb_listener_sp = m_opaque_sp->GetListener(); | ||||
while (lldb_listener_sp->GetEventForBroadcaster( | while (lldb_listener_sp->GetEventForBroadcaster( | ||||
▲ Show 20 Lines • Show All 1,276 Lines • Show Last 20 Lines |