LLDB  mainline
Functions | Variables
CommandObjectExpression.cpp File Reference
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"
#include "CommandObjectExpression.h"
#include "Plugins/ExpressionParser/Clang/ClangExpressionVariable.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Core/Value.h"
#include "lldb/Core/ValueObjectVariable.h"
#include "lldb/DataFormatters/ValueObjectPrinter.h"
#include "lldb/Expression/DWARFExpression.h"
#include "lldb/Expression/REPL.h"
#include "lldb/Expression/UserExpression.h"
#include "lldb/Host/Host.h"
#include "lldb/Host/OptionParser.h"
#include "lldb/Interpreter/CommandInterpreter.h"
#include "lldb/Interpreter/CommandReturnObject.h"
#include "lldb/Interpreter/OptionArgParser.h"
#include "lldb/Symbol/ObjectFile.h"
#include "lldb/Symbol/Variable.h"
#include "lldb/Target/Language.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/StackFrame.h"
#include "lldb/Target/Target.h"
#include "lldb/Target/Thread.h"
Include dependency graph for CommandObjectExpression.cpp:

Go to the source code of this file.

Functions

static constexpr OptionEnumValues DescriptionVerbosityTypes ()
 
static lldb_private::Status CanBeUsedForElementCountPrinting (ValueObject &valobj)
 
static EvaluateExpressionOptions GetExprOptions (ExecutionContext &ctx, CommandObjectExpression::CommandOptions command_options)
 

Variables

static constexpr OptionEnumValueElement g_description_verbosity_type []
 
static constexpr OptionDefinition g_expression_options []
 

Function Documentation

◆ CanBeUsedForElementCountPrinting()

static lldb_private::Status CanBeUsedForElementCountPrinting ( ValueObject valobj)
static

◆ DescriptionVerbosityTypes()

static constexpr OptionEnumValues DescriptionVerbosityTypes ( )
static

Definition at line 47 of file CommandObjectExpression.cpp.

References g_description_verbosity_type.

◆ GetExprOptions()

static EvaluateExpressionOptions GetExprOptions ( ExecutionContext ctx,
CommandObjectExpression::CommandOptions  command_options 
)
static

Variable Documentation

◆ g_description_verbosity_type

constexpr OptionEnumValueElement g_description_verbosity_type[]
static

◆ g_expression_options

constexpr OptionDefinition g_expression_options[]
static
Initial value:
= {
{LLDB_OPT_SET_1 | LLDB_OPT_SET_2, false, "all-threads", 'a', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeBoolean, "Should we run all threads if the execution doesn't complete on one thread."},
{LLDB_OPT_SET_1 | LLDB_OPT_SET_2, false, "ignore-breakpoints", 'i', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeBoolean, "Ignore breakpoint hits while running expressions"},
{LLDB_OPT_SET_1 | LLDB_OPT_SET_2, false, "timeout", 't', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeUnsignedInteger, "Timeout value (in microseconds) for running the expression."},
{LLDB_OPT_SET_1 | LLDB_OPT_SET_2, false, "unwind-on-error", 'u', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeBoolean, "Clean up program state if the expression causes a crash, or raises a signal. "
"Note, unlike gdb hitting a breakpoint is controlled by another option (-i)."},
{LLDB_OPT_SET_1 | LLDB_OPT_SET_2, false, "debug", 'g', OptionParser::eNoArgument, nullptr, {}, 0, eArgTypeNone, "When specified, debug the JIT code by setting a breakpoint on the first instruction "
"and forcing breakpoints to not be ignored (-i0) and no unwinding to happen on error (-u0)."},
{LLDB_OPT_SET_1 | LLDB_OPT_SET_2, false, "language", 'l', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeLanguage, "Specifies the Language to use when parsing the expression. If not set the target.language "
"setting is used." },
{LLDB_OPT_SET_1 | LLDB_OPT_SET_2, false, "apply-fixits", 'X', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeLanguage, "If true, simple fix-it hints will be automatically applied to the expression." },
{LLDB_OPT_SET_1, false, "description-verbosity", 'v', OptionParser::eOptionalArgument, nullptr, DescriptionVerbosityTypes(), 0, eArgTypeDescriptionVerbosity, "How verbose should the output of this expression be, if the object description is asked for."},
{LLDB_OPT_SET_1 | LLDB_OPT_SET_2, false, "top-level", 'p', OptionParser::eNoArgument, nullptr, {}, 0, eArgTypeNone, "Interpret the expression as a complete translation unit, without injecting it into the local "
"context. Allows declaration of persistent, top-level entities without a $ prefix."},
{LLDB_OPT_SET_1 | LLDB_OPT_SET_2, false, "allow-jit", 'j', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeBoolean, "Controls whether the expression can fall back to being JITted if it's not supported by "
"the interpreter (defaults to true)."}
}
#define LLDB_OPT_SET_2
Definition: lldb-defines.h:112
static constexpr OptionEnumValues DescriptionVerbosityTypes()
#define LLDB_OPT_SET_1
Definition: lldb-defines.h:111

Definition at line 51 of file CommandObjectExpression.cpp.

Referenced by lldb_private::CommandObjectExpression::CommandOptions::GetDefinitions().