diff options
author | Tamar Christina <tamar.christina@arm.com> | 2019-09-19 13:15:02 +0100 |
---|---|---|
committer | Tamar Christina <tamar.christina@arm.com> | 2019-09-19 13:15:52 +0100 |
commit | 4e28d4cc5b134a4027b4103ddaf09c19b8e0230b (patch) | |
tree | cd43d48a3907ef690221c150fa942d8523548bc2 /binutils/testsuite | |
parent | fd3619828e94a24a92cddec42cbc0ab33352eeb4 (diff) | |
download | gdb-4e28d4cc5b134a4027b4103ddaf09c19b8e0230b.zip gdb-4e28d4cc5b134a4027b4103ddaf09c19b8e0230b.tar.gz gdb-4e28d4cc5b134a4027b4103ddaf09c19b8e0230b.tar.bz2 |
AArch64: Fix objdump tests
The newly added objdump -S tests check for source line mapping of a static
variable. But the test doesn't dump any data sections so this should never
pass.
This changes the test to dump all sections so the source mapping can be found.
binutils/ChangeLog:
* testsuite/binutils-all/objdump.exp (objdump -S): Update testcases.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r-- | binutils/testsuite/binutils-all/objdump.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/testsuite/binutils-all/objdump.exp b/binutils/testsuite/binutils-all/objdump.exp index 9630bac..58b66d4 100644 --- a/binutils/testsuite/binutils-all/objdump.exp +++ b/binutils/testsuite/binutils-all/objdump.exp @@ -818,7 +818,7 @@ proc test_objdump_S { } { return } - set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -S tmpdir/testprog"] + set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -D -S tmpdir/testprog"] set want "static int local = 2" @@ -830,7 +830,7 @@ proc test_objdump_S { } { set test "objdump --source-comment" - set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS --source-comment=// tmpdir/testprog"] + set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS --disassemble-all --source-comment=// tmpdir/testprog"] set want "//static int local = 2" |