[Lldb-commits] [lldb] r113831 - /lldb/trunk/source/Target/Process.cpp
Greg Clayton
gclayton at apple.com
Mon Sep 13 20:47:41 PDT 2010
Author: gclayton
Date: Mon Sep 13 22:47:41 2010
New Revision: 113831
URL: http://llvm.org/viewvc/llvm-project?rev=113831&view=rev
Log:
Fixed an issue that was always causing an extra empty argument to be sent
to any inferior process because the code was checking if no run args were
set and then adding and empty string. This was happening for environment
vars as well.
Modified:
lldb/trunk/source/Target/Process.cpp
Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=113831&r1=113830&r2=113831&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Mon Sep 13 22:47:41 2010
@@ -2099,10 +2099,10 @@
if (var_name == RunArgsVarName())
{
if (m_run_args.GetArgumentCount() > 0)
+ {
for (int i = 0; i < m_run_args.GetArgumentCount(); ++i)
value.AppendString (m_run_args.GetArgumentAtIndex (i));
- else
- value.AppendString ("");
+ }
}
else if (var_name == EnvVarsVarName())
{
@@ -2116,8 +2116,6 @@
value.AppendString (value_str.GetData());
}
}
- else
- value.AppendString ("");
}
else if (var_name == InputPathVarName())
{
More information about the lldb-commits
mailing list