aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-10-12 18:04:53 +0000
committerGreg Clayton <gclayton@apple.com>2010-10-12 18:04:53 +0000
commitf220088295a892208747bbb5eaac52cab48ad9a4 (patch)
tree041bad065615a1a842dfd2009b7799518128f2c3 /lldb/source/Interpreter/CommandObjectRegexCommand.cpp
parent395a898b2b3f5c793f036c0cf5f5a36e1428a9a4 (diff)
downloadllvm-f220088295a892208747bbb5eaac52cab48ad9a4.zip
llvm-f220088295a892208747bbb5eaac52cab48ad9a4.tar.gz
llvm-f220088295a892208747bbb5eaac52cab48ad9a4.tar.bz2
Regular expression commands now print the command that results from expanding the regular expression command.
llvm-svn: 116320
Diffstat (limited to 'lldb/source/Interpreter/CommandObjectRegexCommand.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObjectRegexCommand.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lldb/source/Interpreter/CommandObjectRegexCommand.cpp b/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
index 534038a..405c94d 100644
--- a/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
+++ b/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
@@ -87,15 +87,14 @@ CommandObjectRegexCommand::ExecuteRawCommandString
}
}
// Interpret the new command and return this as the result!
-// if (m_options.verbose)
-// result.GetOutputStream().Printf("%s\n", new_command.c_str());
+ result.GetOutputStream().Printf("%s\n", new_command.c_str());
return m_interpreter.HandleCommand(new_command.c_str(), true, result);
}
}
result.SetStatus(eReturnStatusFailed);
- result.AppendErrorWithFormat("Command contents '%s' failed to match any regular expression in the '%s' regex command.\n",
- command,
- m_cmd_name.c_str());
+ result.AppendErrorWithFormat ("Command contents '%s' failed to match any regular expression in the '%s' regex command.\n",
+ command,
+ m_cmd_name.c_str());
return false;
}
result.AppendError("empty command passed to regular exression command");