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() {
539 void CommandInterpreter::Clear() {
543 const char *CommandInterpreter::ProcessEmbeddedScriptCommands(const char *arg) {
559 void CommandInterpreter::LoadCommandDictionary() {
943 int CommandInterpreter::GetCommandNamesMatchingPartialString(
957 CommandObjectMultiword *CommandInterpreter::VerifyUserMultiwordCmdPath(
1018 CommandInterpreter::GetCommandSP(llvm::StringRef cmd_str, bool include_aliases,
1144 bool CommandInterpreter::AddCommand(llvm::StringRef name,
1168 Status CommandInterpreter::AddUserCommand(llvm::StringRef name,
1220 CommandInterpreter::GetCommandSPExact(llvm::StringRef cmd_str,
1262 CommandInterpreter::GetCommandObject(llvm::StringRef cmd_str,
1272 CommandObject *CommandInterpreter::GetUserCommandObject(
1308 CommandObject *CommandInterpreter::GetAliasCommandObject(
1341 bool CommandInterpreter::CommandExists(llvm::StringRef cmd) const {
1345 bool CommandInterpreter::GetAliasFullName(llvm::StringRef cmd,
1374 bool CommandInterpreter::AliasExists(llvm::StringRef cmd) const {
1378 bool CommandInterpreter::UserCommandExists(llvm::StringRef cmd) const {
1382 bool CommandInterpreter::UserMultiwordCommandExists(llvm::StringRef cmd) const {
1387 CommandInterpreter::AddAlias(llvm::StringRef alias_name,
1406 bool CommandInterpreter::RemoveAlias(llvm::StringRef alias_name) {
1415 bool CommandInterpreter::RemoveCommand(llvm::StringRef cmd, bool force) {
1428 bool CommandInterpreter::RemoveUser(llvm::StringRef user_name) {
1437 bool CommandInterpreter::RemoveUserMultiword(llvm::StringRef multi_name) {
1446 void CommandInterpreter::GetHelp(CommandReturnObject &result,
1518 CommandObject *CommandInterpreter::GetCommandObjectForCommand(
1660 CommandObject *CommandInterpreter::BuildAliasResult(
1749 Status CommandInterpreter::PreprocessCommand(std::string &command) {
1802 CommandInterpreter::PreprocessToken(std::string &expr_str) {
1872 bool CommandInterpreter::HandleCommand(const char *command_line,
1883 bool CommandInterpreter::HandleCommand(const char *command_line,
2107 void CommandInterpreter::HandleCompletionMatches(CompletionRequest &request) {
2154 void CommandInterpreter::HandleCompletion(CompletionRequest &request) {
2175 CommandInterpreter::GetAutoSuggestionForCommand(llvm::StringRef line) {
2187 void CommandInterpreter::UpdatePrompt(llvm::StringRef new_prompt) {
2196 bool CommandInterpreter::Confirm(llvm::StringRef message, bool default_answer) {
2209 CommandInterpreter::GetAlias(llvm::StringRef alias_name) const {
2219 bool CommandInterpreter::HasCommands() const { return (!m_command_dict.empty()); }
2221 bool CommandInterpreter::HasAliases() const { return (!m_alias_dict.empty()); }
2223 bool CommandInterpreter::HasUserCommands() const { return (!m_user_dict.empty()); }
2225 bool CommandInterpreter::HasUserMultiwordCommands() const {
2229 bool CommandInterpreter::HasAliasOptions() const { return HasAliases(); }
2231 void CommandInterpreter::BuildAliasCommandArgs(CommandObject *alias_cmd_obj,
2345 int CommandInterpreter::GetOptionArgumentPosition(const char *in_string) {
2412 void CommandInterpreter::SourceInitFile(FileSpec file,
2434 void CommandInterpreter::SourceInitFileCwd(CommandReturnObject &result) {
2474 void CommandInterpreter::SourceInitFileHome(CommandReturnObject &result,
2501 void CommandInterpreter::SourceInitFileGlobal(CommandReturnObject &result) {
2516 const char *CommandInterpreter::GetCommandPrefix() {
2521 PlatformSP CommandInterpreter::GetPlatform(bool prefer_target_platform) {
2535 bool CommandInterpreter::DidProcessStopAbnormally() const {
2582 CommandInterpreter::HandleCommands(const StringList &commands,
2592 void CommandInterpreter::HandleCommands(const StringList &commands,
2723 void CommandInterpreter::HandleCommandsFromFile(
2731 void CommandInterpreter::HandleCommandsFromFile(FileSpec &cmd_file,
2845 debugger, IOHandler::Type::CommandInterpreter, input_file_sp,
2876 bool CommandInterpreter::GetSynchronous() { return m_synchronous_execution; }
2878 void CommandInterpreter::SetSynchronous(bool value) {
2882 void CommandInterpreter::OutputFormattedHelpText(Stream &strm,
2926 void CommandInterpreter::OutputFormattedHelpText(Stream &strm,
2937 void CommandInterpreter::OutputHelpText(Stream &strm, llvm::StringRef word_text,
2981 void CommandInterpreter::FindCommandsForApropos(
3013 void CommandInterpreter::FindCommandsForApropos(llvm::StringRef search_word,
3039 ExecutionContext CommandInterpreter::GetExecutionContext() const {
3045 void CommandInterpreter::OverrideExecutionContext(
3050 void CommandInterpreter::RestoreExecutionContext() {
3055 void CommandInterpreter::GetProcessOutput() {
3061 void CommandInterpreter::StartHandlingCommand() {
3071 void CommandInterpreter::FinishHandlingCommand() {
3079 bool CommandInterpreter::InterruptCommand() {
3085 bool CommandInterpreter::WasInterrupted() const {
3095 void CommandInterpreter::PrintCommandOutput(IOHandler &io_handler,
3120 bool CommandInterpreter::EchoCommandNonInteractive(
3135 void CommandInterpreter::IOHandlerInputComplete(IOHandler &io_handler,
3251 bool CommandInterpreter::IOHandlerInterrupt(IOHandler &io_handler) {
3275 bool CommandInterpreter::SaveTranscript(
3343 bool CommandInterpreter::IsInteractive() {
3347 FileSpec CommandInterpreter::GetCurrentSourceDir() {
3353 void CommandInterpreter::GetLLDBCommandsFromIOHandler(
3372 void CommandInterpreter::GetPythonCommandsFromIOHandler(
3391 bool CommandInterpreter::IsActive() {
3396 CommandInterpreter::GetIOHandler(bool force_create,
3430 m_debugger, IOHandler::Type::CommandInterpreter,
3442 CommandInterpreterRunResult CommandInterpreter::RunCommandInterpreter(
3457 // that this IS the CommandInterpreter IOHandler thread, so make it so:
3472 CommandInterpreter::ResolveCommandImpl(std::string &command_line,
3649 llvm::json::Value CommandInterpreter::GetStatistics() {
3656 const StructuredData::Array &CommandInterpreter::GetTranscript() const {