aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-12-16 04:01:30 +0000
committerAndreas K. Hüttel <dilfridge@gentoo.org>2023-12-16 14:26:21 +0100
commit81a0b0fca619bbe1411139a1c775328d15aa352e (patch)
tree35a812d897bb814e0259b1ed4f2cb15b3b3f7874
parentld/x86: reduce testsuite dependency on system object files (diff)
downloadbinutils-gdb-81a0b0fca619bbe1411139a1c775328d15aa352e.tar.gz
binutils-gdb-81a0b0fca619bbe1411139a1c775328d15aa352e.tar.bz2
binutils-gdb-81a0b0fca619bbe1411139a1c775328d15aa352e.zip
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)
-rw-r--r--ld/testsuite/lib/ld-lib.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 7d22ee70b27..44f2865116f 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -652,7 +652,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"
@@ -1079,7 +1079,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
}