[Lldb-commits] [lldb] r354804 - [lldb-mi] Return source line number in proper format
Tatyana Krasnukha via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 25 10:32:46 PST 2019
Author: tkrasnukha
Date: Mon Feb 25 10:32:46 2019
New Revision: 354804
URL: http://llvm.org/viewvc/llvm-project?rev=354804&view=rev
Log:
[lldb-mi] Return source line number in proper format
Line number is a decimal number and is printed as such, however for some
reason it was prefixed with '0x', thus turning printed value invalid.
Patch by Anton Kolesov <Anton.Kolesov at synopsys.com>
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=354804&r1=354803&r2=354804&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MICmdCmdData.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MICmdCmdData.cpp Mon Feb 25 10:32:46 2019
@@ -418,7 +418,7 @@ bool CMICmdCmdDataDisassemble::Execute()
// MI "src_and_asm_line={line=\"%u\",file=\"%s\",line_asm_insn=[ ]}"
const CMICmnMIValueConst miValueConst(
- CMIUtilString::Format("0x%u", nLine));
+ CMIUtilString::Format("%u", nLine));
const CMICmnMIValueResult miValueResult("line", miValueConst);
CMICmnMIValueTuple miValueTuple2(miValueResult);
const CMICmnMIValueConst miValueConst2(pFileName);
More information about the lldb-commits
mailing list