]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
AArch64: Fix objdump tests
authorTamar Christina <tamar.christina@arm.com>
Thu, 19 Sep 2019 12:15:02 +0000 (13:15 +0100)
committerTamar Christina <tamar.christina@arm.com>
Thu, 19 Sep 2019 12:21:35 +0000 (13:21 +0100)
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.

(cherry picked from commit 4e28d4cc5b134a4027b4103ddaf09c19b8e0230b)

binutils/ChangeLog
binutils/testsuite/binutils-all/objdump.exp

index 596f36a69ed67f029a552d4b5174b7ce198b7796..167e937f761f333cf0730aea02d05a6b15d024e2 100644 (file)
@@ -1,3 +1,7 @@
+2019-09-19  Tamar Christina  <tamar.christina@arm.com>
+
+       * testsuite/binutils-all/objdump.exp (objdump -S): Update testcase.
+
 2019-09-16  Phil Blundell  <pb@pbcl.net>
 
        * Makefile.in, doc/Makefile.in, configure: Regenerated.
index 9630bacb9053a750cedfdfaf0ded8bd6c424299e..58b66d4bb608f793808acca9dea0a1a0f26fb2e4 100644 (file)
@@ -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"