On Thu, Sep 21, 2017 at 04:29:34PM +0200, Pierre-Marie de Rodat wrote: > On 09/20/2017 08:08 PM, Jeff Law wrote: > > > As for general DWARF5 testing, I think best coverage is GDB (say guality > > > testing with -gdwarf-5), I think GDB 8.0 should have the needed support. > > > I'll try to install it (am only at 7.12.1 right now) and try to do some > > > testing. > > > What about Pierre-Marie's work to be able to use python to parse and > > check dwarf output? > > I’m not sure from reading the thread what is to be tested, here. Is it just > the presence of the .debug_line_str section? (in which case for once just > scanning the .s sounds enough) Or is it rather about checking that objdump > (or alike) can properly parse the line table?
The latter, basically verify that a line info (and also location info etc.) consumer can grok the DWARF5 stuff. And for that IMNSHO we really need a consumer that follows the spec and complains if it is wrong. Jakub