mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 05:47:26 +08:00
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.
This commit is contained in:
@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user