]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
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>
Wed, 20 Dec 2023 02:37:37 +0000 (02:37 +0000)
commite686a9aeb4900658797ea748088ae6298f5ca159
tree0e97d82623bc793371f47dfdef03e694817a9b4c
parenta23e3d64517f0763cad9ad522c234fcdd7c20117
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>
(cherry picked from commit 646657284f6b62a71a6869826e951b3def4d73a6)
ld/testsuite/lib/ld-lib.exp