Lines Matching refs:m_opaque_sp
132 : m_opaque_sp(debugger_sp) { in SBDebugger()
136 SBDebugger::SBDebugger(const SBDebugger &rhs) : m_opaque_sp(rhs.m_opaque_sp) { in SBDebugger()
147 m_opaque_sp = rhs.m_opaque_sp; in operator =()
178 if (m_opaque_sp) in Clear()
179 m_opaque_sp->ClearIOHandlers(); in Clear()
181 m_opaque_sp.reset(); in Clear()
235 Debugger::Destroy(debugger.m_opaque_sp); in Destroy()
237 if (debugger.m_opaque_sp.get() != nullptr) in Destroy()
238 debugger.m_opaque_sp.reset(); in Destroy()
261 return m_opaque_sp.get() != nullptr; in operator bool()
267 if (m_opaque_sp) in SetAsync()
268 m_opaque_sp->SetAsyncExecution(b); in SetAsync()
274 return (m_opaque_sp ? m_opaque_sp->GetAsyncExecution() : false); in GetAsync()
280 if (m_opaque_sp) in SkipLLDBInitFiles()
281 m_opaque_sp->GetCommandInterpreter().SkipLLDBInitFiles(b); in SkipLLDBInitFiles()
287 if (m_opaque_sp) in SkipAppInitFiles()
288 m_opaque_sp->GetCommandInterpreter().SkipAppInitFiles(b); in SkipAppInitFiles()
309 if (!m_opaque_sp) { in SetInputFile()
318 FileSP file_sp = file.m_opaque_sp; in SetInputFile()
339 m_opaque_sp->SetInputFile(file_sp, recorder); in SetInputFile()
357 if (!m_opaque_sp) { in SetOutputFile()
365 m_opaque_sp->SetOutputFile(file.m_opaque_sp); in SetOutputFile()
383 if (!m_opaque_sp) { in SetErrorFile()
391 m_opaque_sp->SetErrorFile(file.m_opaque_sp); in SetErrorFile()
397 if (m_opaque_sp) { in GetInputFileHandle()
398 File &file_sp = m_opaque_sp->GetInputFile(); in GetInputFileHandle()
406 if (m_opaque_sp) { in GetInputFile()
407 return LLDB_RECORD_RESULT(SBFile(m_opaque_sp->GetInputFileSP())); in GetInputFile()
414 if (m_opaque_sp) { in GetOutputFileHandle()
415 StreamFile &stream_file = m_opaque_sp->GetOutputStream(); in GetOutputFileHandle()
423 if (m_opaque_sp) { in GetOutputFile()
424 SBFile file(m_opaque_sp->GetOutputStream().GetFileSP()); in GetOutputFile()
433 if (m_opaque_sp) { in GetErrorFileHandle()
434 StreamFile &stream_file = m_opaque_sp->GetErrorStream(); in GetErrorFileHandle()
443 if (m_opaque_sp) { in GetErrorFile()
444 SBFile file(m_opaque_sp->GetErrorStream().GetFileSP()); in GetErrorFile()
453 if (m_opaque_sp) in SaveInputTerminalState()
454 m_opaque_sp->SaveInputTerminalState(); in SaveInputTerminalState()
460 if (m_opaque_sp) in RestoreInputTerminalState()
461 m_opaque_sp->RestoreInputTerminalState(); in RestoreInputTerminalState()
468 if (m_opaque_sp) in GetCommandInterpreter()
469 sb_interpreter.reset(&m_opaque_sp->GetCommandInterpreter()); in GetCommandInterpreter()
477 if (m_opaque_sp) { in HandleCommand()
478 TargetSP target_sp(m_opaque_sp->GetSelectedTarget()); in HandleCommand()
488 result.PutError(m_opaque_sp->GetErrorStream().GetFileSP()); in HandleCommand()
489 result.PutOutput(m_opaque_sp->GetOutputStream().GetFileSP()); in HandleCommand()
491 if (!m_opaque_sp->GetAsyncExecution()) { in HandleCommand()
496 ListenerSP lldb_listener_sp = m_opaque_sp->GetListener(); in HandleCommand()
511 if (m_opaque_sp) in GetListener()
512 sb_listener.reset(m_opaque_sp->GetListener()); in GetListener()
525 return HandleProcessEvent(process, event, out.m_opaque_sp, err.m_opaque_sp); in HandleProcessEvent()
740 if (m_opaque_sp) { in CreateTarget()
745 sb_error.ref() = m_opaque_sp->GetTargetList().CreateTarget( in CreateTarget()
746 *m_opaque_sp, filename, target_triple, in CreateTarget()
761 static_cast<void *>(m_opaque_sp.get()), filename, target_triple, in CreateTarget()
777 if (m_opaque_sp) { in CreateTargetWithFileAndTargetTriple()
779 Status error(m_opaque_sp->GetTargetList().CreateTarget( in CreateTargetWithFileAndTargetTriple()
780 *m_opaque_sp, filename, target_triple, in CreateTargetWithFileAndTargetTriple()
790 static_cast<void *>(m_opaque_sp.get()), filename, target_triple, in CreateTargetWithFileAndTargetTriple()
805 if (m_opaque_sp) { in CreateTargetWithFileAndArch()
809 error = m_opaque_sp->GetTargetList().CreateTarget( in CreateTargetWithFileAndArch()
810 *m_opaque_sp, filename, arch_cstr, in CreateTargetWithFileAndArch()
815 m_opaque_sp->GetTargetList().SetSelectedTarget(target_sp.get()); in CreateTargetWithFileAndArch()
823 static_cast<void *>(m_opaque_sp.get()), filename, arch_cstr, in CreateTargetWithFileAndArch()
835 if (m_opaque_sp) { in CreateTarget()
838 error = m_opaque_sp->GetTargetList().CreateTarget( in CreateTarget()
839 *m_opaque_sp, filename, "", in CreateTarget()
844 m_opaque_sp->GetTargetList().SetSelectedTarget(target_sp.get()); in CreateTarget()
851 static_cast<void *>(m_opaque_sp.get()), filename, in CreateTarget()
860 if (m_opaque_sp) { in GetDummyTarget()
861 sb_target.SetSP(m_opaque_sp->GetDummyTarget().shared_from_this()); in GetDummyTarget()
865 static_cast<void *>(m_opaque_sp.get()), in GetDummyTarget()
875 if (m_opaque_sp) { in DeleteTarget()
879 result = m_opaque_sp->GetTargetList().DeleteTarget(target_sp); in DeleteTarget()
887 static_cast<void *>(m_opaque_sp.get()), in DeleteTarget()
888 static_cast<void *>(target.m_opaque_sp.get()), result); in DeleteTarget()
898 if (m_opaque_sp) { in GetTargetAtIndex()
900 sb_target.SetSP(m_opaque_sp->GetTargetList().GetTargetAtIndex(idx)); in GetTargetAtIndex()
913 if (!m_opaque_sp) in GetIndexOfTarget()
916 return m_opaque_sp->GetTargetList().GetIndexOfTarget(target.GetSP()); in GetIndexOfTarget()
924 if (m_opaque_sp) { in FindTargetWithProcessID()
926 sb_target.SetSP(m_opaque_sp->GetTargetList().FindTargetWithProcessID(pid)); in FindTargetWithProcessID()
937 if (m_opaque_sp && filename && filename[0]) { in FindTargetWithFileAndArch()
940 m_opaque_sp->GetPlatformList().GetSelectedPlatform().get(), arch_name); in FindTargetWithFileAndArch()
942 m_opaque_sp->GetTargetList().FindTargetWithExecutableAndArchitecture( in FindTargetWithFileAndArch()
951 if (m_opaque_sp) { in FindTargetWithLLDBProcess()
954 m_opaque_sp->GetTargetList().FindTargetWithProcess(process_sp.get())); in FindTargetWithLLDBProcess()
962 if (m_opaque_sp) { in GetNumTargets()
964 return m_opaque_sp->GetTargetList().GetNumTargets(); in GetNumTargets()
976 if (m_opaque_sp) { in GetSelectedTarget()
978 target_sp = m_opaque_sp->GetTargetList().GetSelectedTarget(); in GetSelectedTarget()
986 static_cast<void *>(m_opaque_sp.get()), in GetSelectedTarget()
1000 if (m_opaque_sp) { in SetSelectedTarget()
1001 m_opaque_sp->GetTargetList().SetSelectedTarget(target_sp.get()); in SetSelectedTarget()
1007 static_cast<void *>(m_opaque_sp.get()), in SetSelectedTarget()
1018 DebuggerSP debugger_sp(m_opaque_sp); in GetSelectedPlatform()
1023 static_cast<void *>(m_opaque_sp.get()), in GetSelectedPlatform()
1035 DebuggerSP debugger_sp(m_opaque_sp); in SetSelectedPlatform()
1041 static_cast<void *>(m_opaque_sp.get()), in SetSelectedPlatform()
1049 if (m_opaque_sp) { in GetNumPlatforms()
1051 return m_opaque_sp->GetPlatformList().GetSize(); in GetNumPlatforms()
1061 if (m_opaque_sp) { in GetPlatformAtIndex()
1063 sb_platform.SetSP(m_opaque_sp->GetPlatformList().GetAtIndex(idx)); in GetPlatformAtIndex()
1145 if (m_opaque_sp) in DispatchInputInterrupt()
1146 m_opaque_sp->DispatchInputInterrupt(); in DispatchInputInterrupt()
1152 if (m_opaque_sp) in DispatchInputEndOfFile()
1153 m_opaque_sp->DispatchInputEndOfFile(); in DispatchInputEndOfFile()
1166 if (m_opaque_sp) { in RunCommandInterpreter()
1170 m_opaque_sp->GetCommandInterpreter().RunCommandInterpreter(options); in RunCommandInterpreter()
1187 if (m_opaque_sp) { in RunCommandInterpreter()
1190 CommandInterpreter &interp = m_opaque_sp->GetCommandInterpreter(); in RunCommandInterpreter()
1207 if (!m_opaque_sp) in RunCommandInterpreter()
1210 CommandInterpreter &interp = m_opaque_sp->GetCommandInterpreter(); in RunCommandInterpreter()
1224 if (m_opaque_sp) in RunREPL()
1225 error.ref() = m_opaque_sp->RunREPL(language, repl_options); in RunREPL()
1232 m_opaque_sp = debugger_sp; in reset()
1235 Debugger *SBDebugger::get() const { return m_opaque_sp.get(); } in get()
1238 assert(m_opaque_sp.get()); in ref()
1239 return *m_opaque_sp; in ref()
1242 const lldb::DebuggerSP &SBDebugger::get_sp() const { return m_opaque_sp; } in get_sp()
1259 return (m_opaque_sp ? m_opaque_sp->GetInstanceName().AsCString() : nullptr); in GetInstanceName()
1319 return (m_opaque_sp ? m_opaque_sp->GetTerminalWidth() : 0); in GetTerminalWidth()
1325 if (m_opaque_sp) in SetTerminalWidth()
1326 m_opaque_sp->SetTerminalWidth(term_width); in SetTerminalWidth()
1335 static_cast<void *>(m_opaque_sp.get()), in GetPrompt()
1336 (m_opaque_sp ? m_opaque_sp->GetPrompt().str().c_str() : "")); in GetPrompt()
1338 return (m_opaque_sp ? ConstString(m_opaque_sp->GetPrompt()).GetCString() in GetPrompt()
1345 if (m_opaque_sp) in SetPrompt()
1346 m_opaque_sp->SetPrompt(llvm::StringRef::withNullAsEmpty(prompt)); in SetPrompt()
1352 return (m_opaque_sp in GetReproducerPath()
1353 ? ConstString(m_opaque_sp->GetReproducerPath()).GetCString() in GetReproducerPath()
1361 return (m_opaque_sp ? m_opaque_sp->GetScriptLanguage() : eScriptLanguageNone); in GetScriptLanguage()
1368 if (m_opaque_sp) { in SetScriptLanguage()
1369 m_opaque_sp->SetScriptLanguage(script_lang); in SetScriptLanguage()
1376 return (m_opaque_sp ? m_opaque_sp->SetUseExternalEditor(value) : false); in SetUseExternalEditor()
1382 return (m_opaque_sp ? m_opaque_sp->GetUseExternalEditor() : false); in GetUseExternalEditor()
1388 return (m_opaque_sp ? m_opaque_sp->SetUseColor(value) : false); in SetUseColor()
1394 return (m_opaque_sp ? m_opaque_sp->GetUseColor() : false); in GetUseColor()
1400 return (m_opaque_sp ? m_opaque_sp->SetUseSourceCache(value) : false); in SetUseSourceCache()
1406 return (m_opaque_sp ? m_opaque_sp->GetUseSourceCache() : false); in GetUseSourceCache()
1415 if (m_opaque_sp) { in GetDescription()
1416 const char *name = m_opaque_sp->GetInstanceName().AsCString(); in GetDescription()
1417 user_id_t id = m_opaque_sp->GetID(); in GetDescription()
1428 return (m_opaque_sp ? m_opaque_sp->GetID() : LLDB_INVALID_UID); in GetID()
1436 if (m_opaque_sp) { in SetCurrentPlatform()
1443 m_opaque_sp->GetPlatformList().SetSelectedPlatform(platform_sp); in SetCurrentPlatform()
1450 m_opaque_sp->GetPlatformList().Append(platform_sp, make_selected); in SetCurrentPlatform()
1467 if (m_opaque_sp) { in SetCurrentPlatformSDKRoot()
1469 m_opaque_sp->GetPlatformList().GetSelectedPlatform()); in SetCurrentPlatformSDKRoot()
1485 return (m_opaque_sp ? m_opaque_sp->GetCloseInputOnEOF() : false); in GetCloseInputOnEOF()
1491 if (m_opaque_sp) in SetCloseInputOnEOF()
1492 m_opaque_sp->SetCloseInputOnEOF(b); in SetCloseInputOnEOF()
1625 if (m_opaque_sp) { in EnableLog()
1630 return m_opaque_sp->EnableLog(channel, GetCategoryArray(categories), "", in EnableLog()
1641 if (m_opaque_sp) { in SetLoggingCallback()
1642 return m_opaque_sp->SetLoggingCallback(log_callback, baton); in SetLoggingCallback()