Lines Matching refs:debugger_sp
66 SourceManager::SourceManager(const DebuggerSP &debugger_sp) in SourceManager() argument
68 m_debugger_wp(debugger_sp) {} in SourceManager()
80 DebuggerSP debugger_sp(m_debugger_wp.lock()); in GetFile() local
82 if (debugger_sp && debugger_sp->GetUseSourceCache()) in GetFile()
83 file_sp = debugger_sp->GetSourceFileCache().FindSourceFile(resolved_fspec); in GetFile()
103 file_sp = std::make_shared<File>(resolved_fspec, debugger_sp); in GetFile()
105 if (debugger_sp && debugger_sp->GetUseSourceCache()) in GetFile()
106 debugger_sp->GetSourceFileCache().AddSourceFile(file_sp); in GetFile()
111 static bool should_highlight_source(DebuggerSP debugger_sp) { in should_highlight_source() argument
112 if (!debugger_sp) in should_highlight_source()
117 if (!debugger_sp->GetUseColor()) in should_highlight_source()
120 return debugger_sp->GetHighlightSource(); in should_highlight_source()
123 static bool should_show_stop_column_with_ansi(DebuggerSP debugger_sp) { in should_show_stop_column_with_ansi() argument
126 if (!debugger_sp) in should_show_stop_column_with_ansi()
131 if (!debugger_sp->GetUseColor()) in should_show_stop_column_with_ansi()
137 const auto value = debugger_sp->GetStopShowColumn(); in should_show_stop_column_with_ansi()
142 static bool should_show_stop_column_with_caret(DebuggerSP debugger_sp) { in should_show_stop_column_with_caret() argument
145 if (!debugger_sp) in should_show_stop_column_with_caret()
150 const auto value = debugger_sp->GetStopShowColumn(); in should_show_stop_column_with_caret()
151 if ((value == eStopShowColumnAnsiOrCaret) && !debugger_sp->GetUseColor()) in should_show_stop_column_with_caret()
159 static bool should_show_stop_line_with_ansi(DebuggerSP debugger_sp) { in should_show_stop_line_with_ansi() argument
160 return debugger_sp && debugger_sp->GetUseColor(); in should_show_stop_line_with_ansi()
210 auto debugger_sp = m_debugger_wp.lock(); in DisplaySourceLinesWithLineNumbersUsingLastFile() local
211 if (should_show_stop_line_with_ansi(debugger_sp)) { in DisplaySourceLinesWithLineNumbersUsingLastFile()
213 (debugger_sp->GetStopShowLineMarkerAnsiPrefix() + in DisplaySourceLinesWithLineNumbersUsingLastFile()
215 debugger_sp->GetStopShowLineMarkerAnsiSuffix()) in DisplaySourceLinesWithLineNumbersUsingLastFile()
232 should_show_stop_column_with_caret(debugger_sp)) { in DisplaySourceLinesWithLineNumbersUsingLastFile()
396 lldb::DebuggerSP debugger_sp) in File() argument
399 m_debugger_wp(debugger_sp) { in File()
574 auto debugger_sp = m_debugger_wp.lock(); in DisplaySourceLines() local
578 if (should_highlight_source(debugger_sp)) in DisplaySourceLines()
583 if (should_show_stop_column_with_ansi(debugger_sp)) in DisplaySourceLines()
584 style.selected.Set(debugger_sp->GetStopShowColumnAnsiPrefix(), in DisplaySourceLines()
585 debugger_sp->GetStopShowColumnAnsiSuffix()); in DisplaySourceLines()