|
LLDB mainline
|
#include <chrono>#include <cstdlib>#include <limits>#include <memory>#include <optional>#include <string>#include <vector>#include "Commands/CommandObjectApropos.h"#include "Commands/CommandObjectBreakpoint.h"#include "Commands/CommandObjectCommands.h"#include "Commands/CommandObjectDWIMPrint.h"#include "Commands/CommandObjectDiagnostics.h"#include "Commands/CommandObjectDisassemble.h"#include "Commands/CommandObjectExpression.h"#include "Commands/CommandObjectFrame.h"#include "Commands/CommandObjectGUI.h"#include "Commands/CommandObjectHelp.h"#include "Commands/CommandObjectLanguage.h"#include "Commands/CommandObjectLog.h"#include "Commands/CommandObjectMemory.h"#include "Commands/CommandObjectPlatform.h"#include "Commands/CommandObjectPlugin.h"#include "Commands/CommandObjectProcess.h"#include "Commands/CommandObjectProtocolServer.h"#include "Commands/CommandObjectQuit.h"#include "Commands/CommandObjectRegexCommand.h"#include "Commands/CommandObjectRegister.h"#include "Commands/CommandObjectScripting.h"#include "Commands/CommandObjectSession.h"#include "Commands/CommandObjectSettings.h"#include "Commands/CommandObjectSource.h"#include "Commands/CommandObjectStats.h"#include "Commands/CommandObjectTarget.h"#include "Commands/CommandObjectThread.h"#include "Commands/CommandObjectTrace.h"#include "Commands/CommandObjectType.h"#include "Commands/CommandObjectVersion.h"#include "Commands/CommandObjectWatchpoint.h"#include "lldb/Core/Debugger.h"#include "lldb/Core/Module.h"#include "lldb/Core/PluginManager.h"#include "lldb/Core/Telemetry.h"#include "lldb/Host/StreamFile.h"#include "lldb/Utility/ErrorMessages.h"#include "lldb/Utility/FileSpec.h"#include "lldb/Utility/LLDBLog.h"#include "lldb/Utility/Log.h"#include "lldb/Utility/State.h"#include "lldb/Utility/Stream.h"#include "lldb/Utility/StructuredData.h"#include "lldb/Utility/Timer.h"#include "lldb/Host/Config.h"#include "lldb/lldb-forward.h"#include "lldb/Host/File.h"#include "lldb/Host/FileCache.h"#include "lldb/Host/Host.h"#include "lldb/Host/HostInfo.h"#include "lldb/Interpreter/CommandCompletions.h"#include "lldb/Interpreter/CommandInterpreter.h"#include "lldb/Interpreter/CommandReturnObject.h"#include "lldb/Interpreter/OptionValueProperties.h"#include "lldb/Interpreter/Options.h"#include "lldb/Interpreter/Property.h"#include "lldb/Utility/Args.h"#include "lldb/Target/Language.h"#include "lldb/Target/Process.h"#include "lldb/Target/StopInfo.h"#include "lldb/Target/TargetList.h"#include "lldb/Target/Thread.h"#include "lldb/Target/UnixSignals.h"#include "llvm/ADT/STLExtras.h"#include "llvm/ADT/ScopeExit.h"#include "llvm/ADT/SmallString.h"#include "llvm/Support/FormatAdapters.h"#include "llvm/Support/Path.h"#include "llvm/Support/PrettyStackTrace.h"#include "llvm/Support/ScopedPrinter.h"#include "llvm/Telemetry/Telemetry.h"#include "InterpreterProperties.inc"#include "InterpreterPropertiesEnum.inc"Go to the source code of this file.
Macros | |
| #define | LLDB_PROPERTIES_interpreter |
| #define | LLDB_PROPERTIES_interpreter |
| #define | REGISTER_COMMAND_OBJECT(NAME, CLASS) |
Enumerations | |
| enum | |
| enum | { eHandleCommandFlagStopOnContinue = (1u << 0) , eHandleCommandFlagStopOnError = (1u << 1) , eHandleCommandFlagEchoCommand = (1u << 2) , eHandleCommandFlagEchoCommentCommand = (1u << 3) , eHandleCommandFlagPrintResult = (1u << 4) , eHandleCommandFlagPrintErrors = (1u << 5) , eHandleCommandFlagStopOnCrash = (1u << 6) , eHandleCommandFlagAllowRepeats = (1u << 7) } |
Functions | |
| static void | StripLeadingSpaces (std::string &s) |
| static size_t | FindArgumentTerminator (const std::string &s) |
| static bool | ExtractCommand (std::string &command_string, std::string &command, std::string &suffix, char "e_char) |
| static void | GetHomeInitFile (FileSpec &init_file, llvm::StringRef suffix={}) |
| static void | GetHomeREPLInitFile (FileSpec &init_file, LanguageType language) |
| static void | GetCwdInitFile (llvm::SmallVectorImpl< char > &init_file) |
Variables | |
| static const char * | k_white_space = " \t\v" |
| static constexpr const char * | InitFileWarning |
| static const char * | k_valid_command_chars |
| #define LLDB_PROPERTIES_interpreter |
Definition at line 122 of file CommandInterpreter.cpp.
| #define LLDB_PROPERTIES_interpreter |
Definition at line 122 of file CommandInterpreter.cpp.
| #define REGISTER_COMMAND_OBJECT | ( | NAME, | |
| CLASS ) |
Definition at line 557 of file CommandInterpreter.cpp.
Referenced by lldb_private::CommandInterpreter::LoadCommandDictionary().
| anonymous enum |
Definition at line 125 of file CommandInterpreter.cpp.
| anonymous enum |
Definition at line 2842 of file CommandInterpreter.cpp.
|
static |
Definition at line 1686 of file CommandInterpreter.cpp.
References k_valid_command_chars, k_white_space, and StripLeadingSpaces().
Referenced by lldb_private::CommandInterpreter::ResolveCommandImpl().
|
static |
Definition at line 1665 of file CommandInterpreter.cpp.
Referenced by lldb_private::CommandInterpreter::ResolveCommandImpl().
|
static |
Definition at line 2536 of file CommandInterpreter.cpp.
References lldb_private::FileSystem::Instance(), and lldb_private::FileSystem::Resolve().
Referenced by lldb_private::CommandInterpreter::SourceInitFileCwd().
|
static |
Definition at line 2506 of file CommandInterpreter.cpp.
Referenced by lldb_private::CommandInterpreter::SourceInitFileCwd(), and lldb_private::CommandInterpreter::SourceInitFileHome().
|
static |
Definition at line 2517 of file CommandInterpreter.cpp.
References lldb_private::FileSpec::CopyByAppendingPathComponent(), lldb::eLanguageTypeUnknown, lldb_private::Language::GetLanguagesSupportingREPLs(), lldb_private::Language::GetNameForLanguageType(), and lldb_private::LanguageSet::GetSingularLanguage().
Referenced by lldb_private::CommandInterpreter::SourceInitFileHome().
|
static |
Definition at line 1654 of file CommandInterpreter.cpp.
References k_white_space.
Referenced by ExtractCommand().
|
staticconstexpr |
Definition at line 106 of file CommandInterpreter.cpp.
Referenced by lldb_private::CommandInterpreter::SourceInitFileCwd().
|
static |
Definition at line 1652 of file CommandInterpreter.cpp.
Referenced by ExtractCommand().
|
static |
Definition at line 104 of file CommandInterpreter.cpp.
Referenced by ExtractCommand(), lldb_private::CommandInterpreter::GetCommandObjectForCommand(), lldb_private::CommandInterpreter::HandleCommand(), and StripLeadingSpaces().