summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands')
-rw-r--r--lldb/source/Commands/CommandObjectProcess.cpp6
-rw-r--r--lldb/source/Commands/CommandObjectSettings.cpp2
-rw-r--r--lldb/source/Commands/CommandObjectSource.cpp6
3 files changed, 7 insertions, 7 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp
index 1548e26fe83..703221a0bee 100644
--- a/lldb/source/Commands/CommandObjectProcess.cpp
+++ b/lldb/source/Commands/CommandObjectProcess.cpp
@@ -174,8 +174,8 @@ public:
if (run_args_value.GetSize() > 0)
{
run_args = new Args;
- for (int i = 0; i < run_args_value.GetSize(); ++i)
- run_args->AppendArgument (run_args_value.GetStringAtIndex (i));
+ for (unsigned i = 0, e = run_args_value.GetSize(); i != e; ++i)
+ run_args->AppendArgument(run_args_value.GetStringAtIndex(i));
}
Args *environment = NULL;
@@ -185,7 +185,7 @@ public:
if (env_vars_value.GetSize() > 0)
{
environment = new Args;
- for (int i = 0; i < env_vars_value.GetSize(); ++i)
+ for (unsigned i = 0, e = env_vars_value.GetSize(); i != e; ++i)
environment->AppendArgument (env_vars_value.GetStringAtIndex (i));
}
diff --git a/lldb/source/Commands/CommandObjectSettings.cpp b/lldb/source/Commands/CommandObjectSettings.cpp
index 62657bed2d0..33af62f66ee 100644
--- a/lldb/source/Commands/CommandObjectSettings.cpp
+++ b/lldb/source/Commands/CommandObjectSettings.cpp
@@ -308,7 +308,7 @@ CommandObjectSettingsShow::Execute (CommandInterpreter &interpreter,
else
{
result.AppendMessageWithFormat ("%s%s:\n", variable_name, type_name);
- for (int i = 0; i < value.GetSize(); ++i)
+ for (unsigned i = 0, e = value.GetSize(); i != e; ++i)
{
result.AppendMessageWithFormat (" [%d]: '%s'\n", i, value.GetStringAtIndex (i));
}
diff --git a/lldb/source/Commands/CommandObjectSource.cpp b/lldb/source/Commands/CommandObjectSource.cpp
index 65a95db78b5..996eb79fc1c 100644
--- a/lldb/source/Commands/CommandObjectSource.cpp
+++ b/lldb/source/Commands/CommandObjectSource.cpp
@@ -283,7 +283,7 @@ public:
if (m_options.m_modules.size() > 0)
{
ModuleList matching_modules;
- for (int i = 0; i < m_options.m_modules.size(); i++)
+ for (unsigned i = 0, e = m_options.m_modules.size(); i != e; i++)
{
FileSpec module_spec(m_options.m_modules[i].c_str());
if (module_spec)
@@ -457,7 +457,7 @@ public:
if (m_options.m_modules.size() > 0)
{
ModuleList matching_modules;
- for (int i = 0; i < m_options.m_modules.size(); i++)
+ for (unsigned i = 0, e = m_options.m_modules.size(); i != e; i++)
{
FileSpec module_spec(m_options.m_modules[i].c_str());
if (module_spec)
@@ -495,7 +495,7 @@ public:
bool got_multiple = false;
FileSpec *test_cu_spec = NULL;
- for (int i = 0; i < num_matches; i++)
+ for (unsigned i = 0; i < num_matches; i++)
{
sc_list.GetContextAtIndex(i, sc);
if (sc.comp_unit)
OpenPOWER on IntegriCloud