Lines Matching defs:CommandInterpreter
1 //===-- CommandInterpreter.cpp --------------------------------------------===//
69 #include "lldb/Interpreter/CommandInterpreter.h"
112 const char *CommandInterpreter::g_no_argument = "<no-argument>";
113 const char *CommandInterpreter::g_need_argument = "<need-argument>";
114 const char *CommandInterpreter::g_argument = "<argument>";
125 llvm::StringRef CommandInterpreter::GetStaticBroadcasterClass() {
130 CommandInterpreter::CommandInterpreter(Debugger &debugger,
133 CommandInterpreter::GetStaticBroadcasterClass().str()),
150 bool CommandInterpreter::GetExpandRegexAliases() const {
156 bool CommandInterpreter::GetPromptOnQuit() const {
162 void CommandInterpreter::SetPromptOnQuit(bool enable) {
167 bool CommandInterpreter::GetSaveTranscript() const {
173 void CommandInterpreter::SetSaveTranscript(bool enable) {
178 bool CommandInterpreter::GetSaveSessionOnQuit() const {
184 void CommandInterpreter::SetSaveSessionOnQuit(bool enable) {
189 bool CommandInterpreter::GetOpenTranscriptInEditor() const {
195 void CommandInterpreter::SetOpenTranscriptInEditor(bool enable) {
200 FileSpec CommandInterpreter::GetSaveSessionDirectory() const {
205 void CommandInterpreter::SetSaveSessionDirectory(llvm::StringRef path) {
210 bool CommandInterpreter::GetEchoCommands() const {
216 void CommandInterpreter::SetEchoCommands(bool enable) {
221 bool CommandInterpreter::GetEchoCommentCommands() const {
227 void CommandInterpreter::SetEchoCommentCommands(bool enable) {
232 void CommandInterpreter::AllowExitCodeOnQuit(bool allow) {
238 bool CommandInterpreter::SetQuitExitCode(int exit_code) {
245 int CommandInterpreter::GetQuitExitCode(bool &exited) const {
252 void CommandInterpreter::ResolveCommand(const char *command_line,
261 bool CommandInterpreter::GetStopCmdSourceOnError() const {
267 bool CommandInterpreter::GetSpaceReplPrompts() const {
273 bool CommandInterpreter::GetRepeatPreviousCommand() const {
279 bool CommandInterpreter::GetRequireCommandOverwrite() const {
285 void CommandInterpreter::Initialize() {
541 void CommandInterpreter::Clear() {
545 const char *CommandInterpreter::ProcessEmbeddedScriptCommands(const char *arg) {
561 void CommandInterpreter::LoadCommandDictionary() {
945 int CommandInterpreter::GetCommandNamesMatchingPartialString(
959 CommandObjectMultiword *CommandInterpreter::VerifyUserMultiwordCmdPath(
1017 CommandInterpreter::GetCommandSP(llvm::StringRef cmd_str, bool include_aliases,
1143 bool CommandInterpreter::AddCommand(llvm::StringRef name,
1167 Status CommandInterpreter::AddUserCommand(llvm::StringRef name,
1217 CommandInterpreter::GetCommandSPExact(llvm::StringRef cmd_str,
1259 CommandInterpreter::GetCommandObject(llvm::StringRef cmd_str,
1269 CommandObject *CommandInterpreter::GetUserCommandObject(
1305 bool CommandInterpreter::CommandExists(llvm::StringRef cmd) const {
1309 bool CommandInterpreter::GetAliasFullName(llvm::StringRef cmd,
1339 bool CommandInterpreter::AliasExists(llvm::StringRef cmd) const {
1343 bool CommandInterpreter::UserCommandExists(llvm::StringRef cmd) const {
1347 bool CommandInterpreter::UserMultiwordCommandExists(llvm::StringRef cmd) const {
1352 CommandInterpreter::AddAlias(llvm::StringRef alias_name,
1371 bool CommandInterpreter::RemoveAlias(llvm::StringRef alias_name) {
1380 bool CommandInterpreter::RemoveCommand(llvm::StringRef cmd, bool force) {
1393 bool CommandInterpreter::RemoveUser(llvm::StringRef user_name) {
1403 bool CommandInterpreter::RemoveUserMultiword(llvm::StringRef multi_name) {
1413 void CommandInterpreter::GetHelp(CommandReturnObject &result,
1485 CommandObject *CommandInterpreter::GetCommandObjectForCommand(
1627 CommandObject *CommandInterpreter::BuildAliasResult(
1716 Status CommandInterpreter::PreprocessCommand(std::string &command) {
1769 CommandInterpreter::PreprocessToken(std::string &expr_str) {
1836 bool CommandInterpreter::HandleCommand(const char *command_line,
1847 bool CommandInterpreter::HandleCommand(const char *command_line,
2063 void CommandInterpreter::HandleCompletionMatches(CompletionRequest &request) {
2110 void CommandInterpreter::HandleCompletion(CompletionRequest &request) {
2131 CommandInterpreter::GetAutoSuggestionForCommand(llvm::StringRef line) {
2143 void CommandInterpreter::UpdatePrompt(llvm::StringRef new_prompt) {
2152 bool CommandInterpreter::Confirm(llvm::StringRef message, bool default_answer) {
2165 CommandInterpreter::GetAlias(llvm::StringRef alias_name) const {
2175 bool CommandInterpreter::HasCommands() const { return (!m_command_dict.empty()); }
2177 bool CommandInterpreter::HasAliases() const { return (!m_alias_dict.empty()); }
2179 bool CommandInterpreter::HasUserCommands() const { return (!m_user_dict.empty()); }
2181 bool CommandInterpreter::HasUserMultiwordCommands() const {
2185 bool CommandInterpreter::HasAliasOptions() const { return HasAliases(); }
2187 void CommandInterpreter::BuildAliasCommandArgs(CommandObject *alias_cmd_obj,
2301 int CommandInterpreter::GetOptionArgumentPosition(const char *in_string) {
2368 void CommandInterpreter::SourceInitFile(FileSpec file,
2390 void CommandInterpreter::SourceInitFileCwd(CommandReturnObject &result) {
2430 void CommandInterpreter::SourceInitFileHome(CommandReturnObject &result,
2457 void CommandInterpreter::SourceInitFileGlobal(CommandReturnObject &result) {
2472 const char *CommandInterpreter::GetCommandPrefix() {
2477 PlatformSP CommandInterpreter::GetPlatform(bool prefer_target_platform) {
2491 bool CommandInterpreter::DidProcessStopAbnormally() const {
2538 CommandInterpreter::HandleCommands(const StringList &commands,
2548 void CommandInterpreter::HandleCommands(const StringList &commands,
2681 void CommandInterpreter::HandleCommandsFromFile(
2689 void CommandInterpreter::HandleCommandsFromFile(FileSpec &cmd_file,
2803 debugger, IOHandler::Type::CommandInterpreter, input_file_sp,
2834 bool CommandInterpreter::GetSynchronous() { return m_synchronous_execution; }
2836 void CommandInterpreter::SetSynchronous(bool value) {
2840 void CommandInterpreter::OutputFormattedHelpText(Stream &strm,
2884 void CommandInterpreter::OutputFormattedHelpText(Stream &strm,
2895 void CommandInterpreter::OutputHelpText(Stream &strm, llvm::StringRef word_text,
2939 void CommandInterpreter::FindCommandsForApropos(
2971 void CommandInterpreter::FindCommandsForApropos(llvm::StringRef search_word,
2997 ExecutionContext CommandInterpreter::GetExecutionContext() const {
3003 void CommandInterpreter::OverrideExecutionContext(
3008 void CommandInterpreter::RestoreExecutionContext() {
3013 void CommandInterpreter::GetProcessOutput() {
3019 void CommandInterpreter::StartHandlingCommand() {
3029 void CommandInterpreter::FinishHandlingCommand() {
3037 bool CommandInterpreter::InterruptCommand() {
3043 bool CommandInterpreter::WasInterrupted() const {
3053 void CommandInterpreter::PrintCommandOutput(IOHandler &io_handler,
3078 bool CommandInterpreter::EchoCommandNonInteractive(
3093 void CommandInterpreter::IOHandlerInputComplete(IOHandler &io_handler,
3197 bool CommandInterpreter::IOHandlerInterrupt(IOHandler &io_handler) {
3221 bool CommandInterpreter::SaveTranscript(
3285 bool CommandInterpreter::IsInteractive() {
3289 FileSpec CommandInterpreter::GetCurrentSourceDir() {
3295 void CommandInterpreter::GetLLDBCommandsFromIOHandler(
3314 void CommandInterpreter::GetPythonCommandsFromIOHandler(
3333 bool CommandInterpreter::IsActive() {
3338 CommandInterpreter::GetIOHandler(bool force_create,
3372 m_debugger, IOHandler::Type::CommandInterpreter,
3384 CommandInterpreterRunResult CommandInterpreter::RunCommandInterpreter(
3399 // that this IS the CommandInterpreter IOHandler thread, so make it so:
3414 CommandInterpreter::ResolveCommandImpl(std::string &command_line,
3574 llvm::json::Value CommandInterpreter::GetStatistics() {
3581 const StructuredData::Array &CommandInterpreter::GetTranscript() const {