Lines Matching defs:Debugger
1 //===-- Debugger.cpp ------------------------------------------------------===//
9 #include "lldb/Core/Debugger.h"
105 static Debugger::DebuggerList *g_debugger_list_ptr =
111 Debugger::eStopDisassemblyTypeNever,
116 Debugger::eStopDisassemblyTypeNoDebugInfo,
121 Debugger::eStopDisassemblyTypeNoSource,
128 Debugger::eStopDisassemblyTypeAlways,
198 LoadPluginCallbackType Debugger::g_load_plugin_callback = nullptr;
200 Status Debugger::SetPropertyValue(const ExecutionContext *exe_ctx,
273 bool Debugger::GetAutoConfirm() const {
279 const FormatEntity::Entry *Debugger::GetDisassemblyFormat() const {
284 const FormatEntity::Entry *Debugger::GetFrameFormat() const {
289 const FormatEntity::Entry *Debugger::GetFrameFormatUnique() const {
294 uint64_t Debugger::GetStopDisassemblyMaxSize() const {
300 bool Debugger::GetNotifyVoid() const {
306 llvm::StringRef Debugger::GetPrompt() const {
312 llvm::StringRef Debugger::GetPromptAnsiPrefix() const {
318 llvm::StringRef Debugger::GetPromptAnsiSuffix() const {
324 void Debugger::SetPrompt(llvm::StringRef p) {
335 const FormatEntity::Entry *Debugger::GetThreadFormat() const {
340 const FormatEntity::Entry *Debugger::GetThreadStopFormat() const {
345 lldb::ScriptLanguage Debugger::GetScriptLanguage() const {
352 bool Debugger::SetScriptLanguage(lldb::ScriptLanguage script_lang) {
357 lldb::LanguageType Debugger::GetREPLLanguage() const {
362 bool Debugger::SetREPLLanguage(lldb::LanguageType repl_lang) {
367 uint64_t Debugger::GetTerminalWidth() const {
373 bool Debugger::SetTerminalWidth(uint64_t term_width) {
383 uint64_t Debugger::GetTerminalHeight() const {
389 bool Debugger::SetTerminalHeight(uint64_t term_height) {
399 bool Debugger::GetUseExternalEditor() const {
405 bool Debugger::SetUseExternalEditor(bool b) {
410 llvm::StringRef Debugger::GetExternalEditor() const {
416 bool Debugger::SetExternalEditor(llvm::StringRef editor) {
421 bool Debugger::GetUseColor() const {
427 bool Debugger::SetUseColor(bool b) {
434 bool Debugger::GetShowProgress() const {
440 bool Debugger::SetShowProgress(bool show_progress) {
445 llvm::StringRef Debugger::GetShowProgressAnsiPrefix() const {
451 llvm::StringRef Debugger::GetShowProgressAnsiSuffix() const {
457 bool Debugger::GetUseAutosuggestion() const {
463 llvm::StringRef Debugger::GetAutosuggestionAnsiPrefix() const {
469 llvm::StringRef Debugger::GetAutosuggestionAnsiSuffix() const {
475 llvm::StringRef Debugger::GetRegexMatchAnsiPrefix() const {
481 llvm::StringRef Debugger::GetRegexMatchAnsiSuffix() const {
487 bool Debugger::GetShowDontUsePoHint() const {
493 bool Debugger::GetUseSourceCache() const {
499 bool Debugger::SetUseSourceCache(bool b) {
507 bool Debugger::GetHighlightSource() const {
513 StopShowColumn Debugger::GetStopShowColumn() const {
520 llvm::StringRef Debugger::GetStopShowColumnAnsiPrefix() const {
526 llvm::StringRef Debugger::GetStopShowColumnAnsiSuffix() const {
532 llvm::StringRef Debugger::GetStopShowLineMarkerAnsiPrefix() const {
538 llvm::StringRef Debugger::GetStopShowLineMarkerAnsiSuffix() const {
544 uint64_t Debugger::GetStopSourceLineCount(bool before) const {
551 Debugger::StopDisassemblyType Debugger::GetStopDisassemblyDisplay() const {
553 return GetPropertyAtIndexAs<Debugger::StopDisassemblyType>(
554 idx, static_cast<Debugger::StopDisassemblyType>(
558 uint64_t Debugger::GetDisassemblyLineCount() const {
564 bool Debugger::GetAutoOneLineSummaries() const {
570 bool Debugger::GetEscapeNonPrintables() const {
576 bool Debugger::GetAutoIndent() const {
582 bool Debugger::SetAutoIndent(bool b) {
587 bool Debugger::GetPrintDecls() const {
593 bool Debugger::SetPrintDecls(bool b) {
598 uint64_t Debugger::GetTabSize() const {
604 bool Debugger::SetTabSize(uint64_t tab_size) {
609 lldb::DWIMPrintVerbosity Debugger::GetDWIMPrintVerbosity() const {
616 bool Debugger::GetShowInlineDiagnostics() const {
622 bool Debugger::SetShowInlineDiagnostics(bool b) {
627 #pragma mark Debugger
630 // Debugger::GetSettings() const
636 void Debugger::Initialize(LoadPluginCallbackType load_plugin_callback) {
638 "Debugger::Initialize called more than once!");
645 void Debugger::Terminate() {
647 "Debugger::Terminate called without a matching Debugger::Initialize!");
671 void Debugger::SettingsInitialize() { Target::SettingsInitialize(); }
673 void Debugger::SettingsTerminate() { Target::SettingsTerminate(); }
675 bool Debugger::LoadPlugin(const FileSpec &spec, Status &error) {
703 Debugger *debugger = (Debugger *)baton;
737 void Debugger::InstanceInitialize() {
763 DebuggerSP Debugger::CreateInstance(lldb::LogOutputCallback log_callback,
765 DebuggerSP debugger_sp(new Debugger(log_callback, baton));
774 void Debugger::HandleDestroyCallback() {
794 void Debugger::Destroy(DebuggerSP &debugger_sp) {
826 Debugger::FindDebuggerWithInstanceName(llvm::StringRef instance_name) {
841 TargetSP Debugger::FindTargetWithProcessID(lldb::pid_t pid) {
855 TargetSP Debugger::FindTargetWithProcess(Process *process) {
869 llvm::StringRef Debugger::GetStaticBroadcasterClass() {
874 Debugger::Debugger(lldb::LogOutputCallback log_callback, void *baton)
883 m_listener_sp(Listener::MakeListener("lldb.Debugger")),
977 Debugger::~Debugger() { Clear(); }
979 void Debugger::Clear() {
984 // The following functions call Debugger::Clear():
985 // Debugger::~Debugger();
986 // static void Debugger::Destroy(lldb::DebuggerSP &debugger_sp);
987 // static void Debugger::Terminate();
1014 bool Debugger::GetAsyncExecution() {
1018 void Debugger::SetAsyncExecution(bool async_execution) {
1022 repro::DataRecorder *Debugger::GetInputRecorder() { return m_input_recorder; }
1033 Status Debugger::SetInputString(const char *data) {
1077 void Debugger::SetInputFile(FileSP file_sp) {
1085 void Debugger::SetOutputFile(FileSP file_sp) {
1090 void Debugger::SetErrorFile(FileSP file_sp) {
1095 void Debugger::SaveInputTerminalState() {
1101 void Debugger::RestoreInputTerminalState() { m_terminal_state.Restore(); }
1103 ExecutionContext Debugger::GetSelectedExecutionContext() {
1109 void Debugger::DispatchInputInterrupt() {
1116 void Debugger::DispatchInputEndOfFile() {
1123 void Debugger::ClearIOHandlers() {
1134 void Debugger::RunIOHandlers() {
1159 void Debugger::RunIOHandlerSync(const IOHandlerSP &reader_sp) {
1190 bool Debugger::IsTopIOHandler(const lldb::IOHandlerSP &reader_sp) {
1194 bool Debugger::CheckTopIOHandlerTypes(IOHandler::Type top_type,
1199 void Debugger::PrintAsync(const char *s, size_t len, bool is_stdout) {
1208 llvm::StringRef Debugger::GetTopIOHandlerControlSequence(char ch) {
1212 const char *Debugger::GetIOHandlerCommandPrefix() {
1216 const char *Debugger::GetIOHandlerHelpPrologue() {
1220 bool Debugger::RemoveIOHandler(const IOHandlerSP &reader_sp) {
1224 void Debugger::RunIOHandlerAsync(const IOHandlerSP &reader_sp,
1229 void Debugger::AdoptTopIOHandlerFilesIfInvalid(FileSP &in, StreamFileSP &out,
1270 void Debugger::PushIOHandler(const IOHandlerSP &reader_sp,
1297 bool Debugger::PopIOHandler(const IOHandlerSP &pop_reader_sp) {
1324 StreamSP Debugger::GetAsyncOutputStream() {
1328 StreamSP Debugger::GetAsyncErrorStream() {
1332 void Debugger::RequestInterrupt() {
1337 void Debugger::CancelInterruptRequest() {
1343 bool Debugger::InterruptRequested() {
1355 Debugger::InterruptionReport::InterruptionReport(
1364 void Debugger::ReportInterruption(const InterruptionReport &report) {
1370 Debugger::DebuggerList Debugger::DebuggersRequestingInterruption() {
1382 size_t Debugger::GetNumDebuggers() {
1390 lldb::DebuggerSP Debugger::GetDebuggerAtIndex(size_t index) {
1402 DebuggerSP Debugger::FindDebuggerWithID(lldb::user_id_t id) {
1418 bool Debugger::FormatDisassemblerAddress(const FormatEntity::Entry *format,
1460 void Debugger::AssertCallback(llvm::StringRef message,
1463 Debugger::ReportError(
1467 void Debugger::SetLoggingCallback(lldb::LogOutputCallback log_callback,
1476 void Debugger::SetDestroyCallback(
1484 lldb::callback_token_t Debugger::AddDestroyCallback(
1492 bool Debugger::RemoveDestroyCallback(lldb::callback_token_t token) {
1504 static void PrivateReportProgress(Debugger &debugger, uint64_t progress_id,
1520 void Debugger::ReportProgress(uint64_t progress_id, std::string title,
1549 static void PrivateReportDiagnostic(Debugger &debugger, Severity severity,
1581 void Debugger::ReportDiagnosticImpl(Severity severity, std::string message,
1622 void Debugger::ReportWarning(std::string message,
1628 void Debugger::ReportError(std::string message,
1634 void Debugger::ReportInfo(std::string message,
1640 void Debugger::ReportSymbolChange(const ModuleSpec &module_spec) {
1668 bool Debugger::EnableLog(llvm::StringRef channel,
1719 Debugger::GetScriptInterpreter(bool can_create,
1735 SourceManager &Debugger::GetSourceManager() {
1742 void Debugger::HandleBreakpointEvent(const EventSP &event_sp) {
1789 void Debugger::FlushProcessOutput(Process &process, bool flush_stdout,
1809 void Debugger::HandleProcessEvent(const EventSP &event_sp) {
1896 void Debugger::HandleThreadEvent(const EventSP &event_sp) {
1913 bool Debugger::IsForwardingEvents() { return (bool)m_forward_listener_sp; }
1915 void Debugger::EnableForwardEvents(const ListenerSP &listener_sp) {
1919 void Debugger::CancelForwardEvents(const ListenerSP &listener_sp) {
1923 lldb::thread_result_t Debugger::DefaultEventHandler() {
2025 bool Debugger::StartEventHandlerThread() {
2065 void Debugger::StopEventHandlerThread() {
2073 lldb::thread_result_t Debugger::IOHandlerThread() {
2079 void Debugger::HandleProgressEvent(const lldb::EventSP &event_sp) {
2092 << static_cast<void *>(this) << " Debugger(" << GetID()
2164 void Debugger::HandleDiagnosticEvent(const lldb::EventSP &event_sp) {
2173 bool Debugger::HasIOHandlerThread() const {
2177 HostThread Debugger::SetIOHandlerThread(HostThread &new_thread) {
2183 bool Debugger::StartIOHandlerThread() {
2198 void Debugger::StopIOHandlerThread() {
2205 void Debugger::JoinIOHandlerThread() {
2213 bool Debugger::IsIOHandlerThreadCurrentThread() const {
2219 Target &Debugger::GetSelectedOrDummyTarget(bool prefer_dummy) {
2227 Status Debugger::RunREPL(LanguageType language, const char *repl_options) {
2272 llvm::ThreadPoolInterface &Debugger::GetThreadPool() {
2274 "Debugger::GetThreadPool called before Debugger::Initialize");