ld: ld-lib.exp: log failed dump.out contents for debugging
authorSam James <sam@gentoo.org>
Wed, 16 Aug 2023 06:21:53 +0000 (07:21 +0100)
committerSam James <sam@gentoo.org>
Thu, 17 Aug 2023 04:21:02 +0000 (05:21 +0100)
commit646657284f6b62a71a6869826e951b3def4d73a6
tree0abd845896a13ed06c043ec4f0b206f4d4d840ef
parent4c072eb6297e6fed85cd6ab502fe18e1cd1d35b4
ld: ld-lib.exp: log failed dump.out contents for debugging

If we're using dump_prog in a test which fails, log the dump.out contents
to ld.log to aid debugging.

This avoids needing to ask reporters to manually run e.g. `objdump` commands
when making bug reports.

PR30722
* ld/testsuite/lib/ld-lib.exp: Log failed dump.out contents to aid
debugging.

Approved-by: Nick Clifton <nickc@redhat.com>
Signed-off-by: Sam James <sam@gentoo.org>
ld/testsuite/lib/ld-lib.exp