Skip to content

Commit

Permalink
cmd/objdump: print full disassembly when testing with -v
Browse files Browse the repository at this point in the history
It is helpful for debugging.

Change-Id: Idd566d312037420f8341fcf502a45410a8497798
Reviewed-on: https://go-review.googlesource.com/c/go/+/353878
Trust: Josh Bleecher Snyder <[email protected]>
Run-TryBot: Josh Bleecher Snyder <[email protected]>
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
josharian committed Oct 4, 2021
1 parent 17674e2 commit 7c79e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/objdump/objdump_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func testDisasm(t *testing.T, srcfname string, printCode bool, printGnuAsm bool,
}
}

if !ok {
if !ok || testing.Verbose() {
t.Logf("full disassembly:\n%s", text)
}
}
Expand Down

0 comments on commit 7c79e8e

Please sign in to comment.