Re: [commit 2/2] testsuite: code_elim.exp: Fix false FAIL

Andreas Schwab
2012-07-19T07:40:26Z

Jan Kratochvil <jan.kratochvil@redhat.com> writes:

> + gdb_test "add-symbol-file ${binfile2} 0x200000 -s .data 0x210000 -s .bss 0x220000" \
> + "Reading symbols from .*${testfile2}\\.\\.\\.done\\." \
> + "add-symbol-file ${testfile2} 0x200000" \
> + "add symbol table from file \".*${testfile2}\" at.*\\(y or n\\) " \
> + "y"
> +

add-symbol-file /home/abuild/rpmbuild/BUILD/gdb-7.4.91/gdb/testsuite/gdb.base/code_elim2 0x200000 -s .data 0x210000 -s .bss 0x220000
add symbol table from file "/home/abuild/rpmbuild/BUILD/gdb-7.4.91/gdb/testsuite/gdb.base/code_elim2" at
.text_addr = 0x200000
.data_addr = 0x210000
.bss_addr = 0x220000
(y or n) y
Reading symbols from /home/abuild/rpmbuild/BUILD/gdb-7.4.91/gdb/testsuite/gdb.base/code_elim2...warning: section .data not found in /home/abuild/rpmbuild/BUILD/gdb-7.4.91/gdb/testsuite/gdb.base/code_elim2
done.
(gdb) FAIL: gdb.base/code_elim.exp: order1: add-symbol-file code_elim2 0x200000
print &my_global_symbol

Andreas.

--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."