<div dir="ltr"><div>Source listing is not working in my lldb port. For the command "source list -n main" I got the following output:</div><div><br></div><div>(snip)</div><div>File: workplace/app/src/workplace/app/src/main.c.</div>
<div>(snip)</div><div><br></div><div>Also when a breakpoint is hit, the corresponding source code lines are not displayed.</div><div><br></div><div><br></div><div>I debugged lldb and found that the path to source file is calculated by combining 'cu_comp_dir' (DW_AT_comp_dir) and 'cu_die_name' (DW_AT_name).</div>
<div><br></div><div>The DWARF info generated is as follows:</div><div><br></div><div>(snip)</div><div>    <1cb>   DW_AT_name        : (indirect string, offset: 0x129): workplace/app/src/main.c</div><div>    <1cf>   DW_AT_comp_dir    : (indirect string, offset: 0x14d): workplace/app/src</div>
<div>(snip)</div><div><br></div><div>Just for experimentation, I removed the inclusion of 'cu_comp_dir' (DW_AT_comp_dir) in the source file path calculation (by editing DWARFDebugLine.cpp and SymbolFileDWARF.cpp). After this, the 'source list' command works, also the source lines are displayed for the breakpoint hit. </div>
<div><br></div><div>I need a clarification on where the problem is? Can someone help me on this?</div><div><br></div><div>Thanks,</div><div>Chandra Kumar R.</div></div>