diff options
author | Sam James <sam@gentoo.org> | 2023-08-16 07:21:53 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-08-17 05:21:02 +0100 |
commit | 646657284f6b62a71a6869826e951b3def4d73a6 (patch) | |
tree | 0abd845896a13ed06c043ec4f0b206f4d4d840ef | |
parent | 4c072eb6297e6fed85cd6ab502fe18e1cd1d35b4 (diff) | |
download | fsf-binutils-gdb-646657284f6b62a71a6869826e951b3def4d73a6.zip fsf-binutils-gdb-646657284f6b62a71a6869826e951b3def4d73a6.tar.gz fsf-binutils-gdb-646657284f6b62a71a6869826e951b3def4d73a6.tar.bz2 |
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>
-rw-r--r-- | ld/testsuite/lib/ld-lib.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index 9184640..aca303e 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -640,7 +640,7 @@ proc run_ld_link_tests { ldtests args } { remote_upload host "dump.out" if { [regexp_diff "dump.out" "$srcdir/$subdir/$dumpfile"] } then { - verbose "output is [file_contents "dump.out"]" 2 + verbose -log "output is [file_contents "dump.out"]" 2 set failed 1 remote_file build delete "dump.out" remote_file host delete "dump.out" @@ -1067,7 +1067,7 @@ proc run_cc_link_tests { ldtests } { } if { [regexp_diff "dump.out" "$srcdir/$subdir/$dumpfile"] } then { - verbose "output is [file_contents "dump.out"]" 2 + verbose -log "output is [file_contents "dump.out"]" 2 set failed 1 break } |