Make the dwarf3 reader more robust and less chatty when things go wrong
commit9c9b909cbfbc36156c366b4829be09f015a63474
authorMark Wielaard <mark@klomp.org>
Fri, 26 Feb 2021 01:34:32 +0000 (26 02:34 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 26 Feb 2021 01:34:32 +0000 (26 02:34 +0100)
tree74a28da8a368c79762b2c7a9ea87029f5717cd9d
parentfd4e3fb0ffa3f751f0e7f2e7f4639d4c3773305d
Make the dwarf3 reader more robust and less chatty when things go wrong

Skip some stuff when seeing an unknown language, be less chatty about
parser issues.

All the issues seem to come from the multi-file, that is the shared
(supplementary or alt) file containing debuginfo shared by all the
gcc/runtime libraries.

There are a couple of issues that this patch works around:

- The multifile contains entries for the 'D' language, which has some
  constructs we don't expect.
- We don't read partial units correctly, which means we often don't know
  the language we are looking at.
- The parser is very chatty about issues it didn't expect (even if they
  are ignored, it will still output something)

It only shows up with --read-var-info=yes which some tests enable, but
which is disabled by default.

Also increate the timeout of drd/tests/pth_cleanup_handler.c because
DWARF reading is so slow.

https://bugs.kde.org/show_bug.cgi?id=433500
NEWS
coregrind/m_debuginfo/readdwarf3.c
coregrind/m_debuginfo/storage.c
drd/tests/pth_cleanup_handler.c