[Lldb-commits] [lldb] r233233 - Keep launch info up to date when accessors are called directly (not through "settings set").
Greg Clayton
gclayton at apple.com
Wed Mar 25 17:15:24 PDT 2015
Author: gclayton
Date: Wed Mar 25 19:15:24 2015
New Revision: 233233
URL: http://llvm.org/viewvc/llvm-project?rev=233233&view=rev
Log:
Keep launch info up to date when accessors are called directly (not through "settings set").
<rdar://problem/20300941>
Modified:
lldb/trunk/source/Target/Target.cpp
Modified: lldb/trunk/source/Target/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Target.cpp?rev=233233&r1=233232&r2=233233&view=diff
==============================================================================
--- lldb/trunk/source/Target/Target.cpp (original)
+++ lldb/trunk/source/Target/Target.cpp Wed Mar 25 19:15:24 2015
@@ -3253,6 +3253,7 @@ TargetProperties::SetArg0 (const char *a
{
const uint32_t idx = ePropertyArg0;
m_collection_sp->SetPropertyAtIndexAsString (NULL, idx, arg);
+ m_launch_info.SetArg0(arg);
}
bool
@@ -3267,6 +3268,7 @@ TargetProperties::SetRunArguments (const
{
const uint32_t idx = ePropertyRunArgs;
m_collection_sp->SetPropertyAtIndexFromArgs (NULL, idx, args);
+ m_launch_info.GetArguments() = args;
}
size_t
@@ -3281,6 +3283,7 @@ TargetProperties::SetEnvironmentFromArgs
{
const uint32_t idx = ePropertyEnvVars;
m_collection_sp->SetPropertyAtIndexFromArgs (NULL, idx, env);
+ m_launch_info.GetEnvironmentEntries() = env;
}
bool
More information about the lldb-commits
mailing list