Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
lldb/source/Expression/REPL.cpp
Show First 20 Lines • Show All 417 Lines • ▼ Show 20 Lines | if (code[0] == ':') { | ||||
// Now set the default file and line to the REPL source file | // Now set the default file and line to the REPL source file | ||||
m_target.GetSourceManager().SetDefaultFileAndLine( | m_target.GetSourceManager().SetDefaultFileAndLine( | ||||
FileSpec(m_repl_source_path), new_default_line); | FileSpec(m_repl_source_path), new_default_line); | ||||
} | } | ||||
static_cast<IOHandlerEditline &>(io_handler) | static_cast<IOHandlerEditline &>(io_handler) | ||||
.SetBaseLineNumber(m_code.GetSize() + 1); | .SetBaseLineNumber(m_code.GetSize() + 1); | ||||
} | } | ||||
if (extra_line) { | if (extra_line) { | ||||
fprintf(output_sp->GetFile().GetStream(), "\n"); | output_sp->Printf("\n"); | ||||
labath: and here. | |||||
} | } | ||||
} | } | ||||
} | } | ||||
// Don't complain about the REPL process going away if we are in the | // Don't complain about the REPL process going away if we are in the | ||||
// process of quitting. | // process of quitting. | ||||
if (!did_quit && (!process_sp || !process_sp->IsAlive())) { | if (!did_quit && (!process_sp || !process_sp->IsAlive())) { | ||||
error_sp->Printf( | error_sp->Printf( | ||||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |
and here.