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