[Lldb-commits] [PATCH] D11209: Fix -data-info-line when source includes column number.

Phabricator reviews at reviews.llvm.org
Wed Jul 15 10:25:22 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL242306: Fix -data-info-line when source includes column number. (authored by dperchik).

Changed prior to commit:
  http://reviews.llvm.org/D11209?vs=29740&id=29793#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D11209

Files:
  lldb/trunk/tools/lldb-mi/MICmdCmdData.cpp

Index: lldb/trunk/tools/lldb-mi/MICmdCmdData.cpp
===================================================================
--- lldb/trunk/tools/lldb-mi/MICmdCmdData.cpp
+++ lldb/trunk/tools/lldb-mi/MICmdCmdData.cpp
@@ -1789,7 +1789,7 @@
             //                                                                     ^ -- line
             const size_t nLineStartPos = nFileEndPos + 1;
             const size_t nLineEndPos = rLine.find(':', nLineStartPos);
-            const size_t nLineLen = nLineEndPos != std::string::npos ? nLineEndPos - nLineStartPos - 1
+            const size_t nLineLen = nLineEndPos != std::string::npos ? nLineEndPos - nLineStartPos
                                                                      : std::string::npos;
             const CMIUtilString strLine(rLine.substr(nLineStartPos, nLineLen).c_str());
             const CMICmnMIValueConst miValueConst4(strLine);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11209.29793.patch
Type: text/x-patch
Size: 902 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150715/3d3414b4/attachment.bin>


More information about the lldb-commits mailing list