[Lldb-commits] [PATCH] D56315: Add a verbose mode to "image dump line-table" and use it to write a .debug_line test

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 7 02:17:39 PST 2019

On 04/01/2019 17:53, Zachary Turner wrote:
> It seems like this test could be made to work with non dwarf debug info 
> by compiling a real source file. WDYT?

Well.. I could write a test by compiling a real source, but it wouldn't 
be *this* test. The idea here was to validate the parsing of the debug 
info into lldb internal data structures (including all the 
is_start_of_statement, is_end_of_prologue bits, etc.), and for that I 
need to be able to specify the input with great precision.

Without that, the only thing I could assert is that there is "some" line 
entry for a given line number, which isn't going to be much useful 
because that is already be extensively tested when setting line 

So, the main use I see for this is testing the workings of a specific 
parser. Then, if that parser works correctly, anything which consumes 
the data from it (e.g., the breakpoint machinery) should work fine too.

More information about the lldb-commits mailing list