summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Target.cpp
diff options
context:
space:
mode:
authorTodd Fiala <todd.fiala@gmail.com>2014-10-06 23:13:30 +0000
committerTodd Fiala <todd.fiala@gmail.com>2014-10-06 23:13:30 +0000
commita9ae365b2d0fa3e545fc76b819c00c7915d20f02 (patch)
treea70d1cd1b046ee3c5b0b17687e1e23cc63bffd8e /lldb/source/Target/Target.cpp
parentc3e7192fc0fe3c5e40d099853bb5fdfff450ed0d (diff)
downloadbcm5719-llvm-a9ae365b2d0fa3e545fc76b819c00c7915d20f02.tar.gz
bcm5719-llvm-a9ae365b2d0fa3e545fc76b819c00c7915d20f02.zip
Add "target.expr-parser-compiler-args" setting.
This setting contains the following: A list containing all the arguments to be passed to the expression parser compiler. This change also ensures quoted arguments are handled appropriately. See http://reviews.llvm.org/D5472 for more details. Change by Tong Shen. llvm-svn: 219169
Diffstat (limited to 'lldb/source/Target/Target.cpp')
-rw-r--r--lldb/source/Target/Target.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index e7da55db256..b4341235bcb 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -2653,6 +2653,7 @@ g_properties[] =
{ "breakpoints-use-platform-avoid-list", OptionValue::eTypeBoolean , false, true , NULL, NULL, "Consult the platform module avoid list when setting non-module specific breakpoints." },
{ "arg0" , OptionValue::eTypeString , false, 0 , NULL, NULL, "The first argument passed to the program in the argument array which can be different from the executable itself." },
{ "run-args" , OptionValue::eTypeArgs , false, 0 , NULL, NULL, "A list containing all the arguments to be passed to the executable when it is run. Note that this does NOT include the argv[0] which is in target.arg0." },
+ { "expr-parser-compiler-args" , OptionValue::eTypeArgs , false, 0 , NULL, NULL, "A list containing all the arguments to be passed to the expression parser compiler." },
{ "env-vars" , OptionValue::eTypeDictionary, false, OptionValue::eTypeString , NULL, NULL, "A list of all the environment variables to be passed to the executable's environment, and their values." },
{ "inherit-env" , OptionValue::eTypeBoolean , false, true , NULL, NULL, "Inherit the environment from the process that is running LLDB." },
{ "input-path" , OptionValue::eTypeFileSpec , false, 0 , NULL, NULL, "The file/path to be used by the executable program for reading its standard input." },
@@ -2701,6 +2702,7 @@ enum
ePropertyBreakpointUseAvoidList,
ePropertyArg0,
ePropertyRunArgs,
+ ePropertyExprParserCompilerArgs,
ePropertyEnvVars,
ePropertyInheritEnv,
ePropertyInputPath,
@@ -2957,6 +2959,20 @@ TargetProperties::GetRunArguments (Args &args) const
}
void
+TargetProperties::SetExprParserCompilerArguments (const Args &args)
+{
+ const uint32_t idx = ePropertyExprParserCompilerArgs;
+ m_collection_sp->SetPropertyAtIndexFromArgs (NULL, idx, args);
+}
+
+bool
+TargetProperties::GetExprParserCompilerArguments (Args &args) const
+{
+ const uint32_t idx = ePropertyExprParserCompilerArgs;
+ return m_collection_sp->GetPropertyAtIndexAsArgs (NULL, idx, args);
+}
+
+void
TargetProperties::SetRunArguments (const Args &args)
{
const uint32_t idx = ePropertyRunArgs;
OpenPOWER on IntegriCloud