Re: [PATCH 08/13] gdb/testsuite: add .debug_rnglists tests

Zoran Zaric via Gdb-patches
2021-01-28T16:24:54Z

> From: Simon Marchi <simon.marchi@efficios.com>
>
> Add tests for the various issues fixed in the previous patches.
>
> Add a new "rnglists" procedure to the DWARF assembler, to allow
> generating .debug_rnglists sections. A trivial change is required to
> support the DWARF 5 CU header layout.
>

I am not a TCL expert and it took me a while to understand the ranglist
support in dwarf.exp and the code makes sense to me.

I also think that the output format should be compatible with the LLVM
assembler.

Thank you for adding this functionality to the DWARF assembler.

Finding ways to force a compiler to generate a specific cases that use
the rangelist constructs with any certainty is almost impossible. Even
the case that I've found could not be reproducible with the next LLVM
release.

Zoran