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.kole...@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); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits