[Lldb-commits] [lldb] r228299 - Fix a typo in list-register-names command.
Hafiz Abid Qadeer
hafiz_abid at mentor.com
Thu Feb 5 06:57:07 PST 2015
Author: abidh
Date: Thu Feb 5 08:57:07 2015
New Revision: 228299
URL: http://llvm.org/viewvc/llvm-project?rev=228299&view=rev
Log:
Fix a typo in list-register-names command.
It was giving error when process was valid.
Modified:
lldb/trunk/tools/lldb-mi/MICmdCmdData.cpp
Modified: lldb/trunk/tools/lldb-mi/MICmdCmdData.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmdCmdData.cpp?rev=228299&r1=228298&r2=228299&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MICmdCmdData.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MICmdCmdData.cpp Thu Feb 5 08:57:07 2015
@@ -828,7 +828,7 @@ CMICmdCmdDataListRegisterNames::Execute(
{
CMICmnLLDBDebugSessionInfo &rSessionInfo(CMICmnLLDBDebugSessionInfo::Instance());
lldb::SBProcess sbProcess = rSessionInfo.GetProcess();
- if (sbProcess.IsValid())
+ if (!sbProcess.IsValid())
{
SetError(CMIUtilString::Format(MIRSRC(IDS_CMD_ERR_INVALID_PROCESS), m_cmdData.strMiCmd.c_str()));
return MIstatus::failure;
More information about the lldb-commits
mailing list