When running test-case gdb.cp/psymtab-parameter.exp with target board readnow,
we run into:
...
FAIL: gdb.cp/psymtab-parameter.exp: maintenance info symtabs
...
The FAIL is expected, as mentioned in the comment:
...
# The goal is to keep the CU (Compilation Unit) unexpanded. It would be
# rather XFAIL than FAIL here. For example -readnow breaks it.
gdb_test_no_output "maintenance info symtabs"
...
Fix the FAIL by skipping the command for -readnow.
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2020-10-27 Tom de Vries <tdevries@suse.de>
* gdb.cp/psymtab-parameter.exp: Don't expect unexpanded CU for
-readnow.
+2020-10-27 Tom de Vries <tdevries@suse.de>
+
+ * gdb.cp/psymtab-parameter.exp: Don't expect unexpanded CU for
+ -readnow.
+
2020-10-14 Gary Benson <gbenson@redhat.com>
* gdb.python/py-format-string.exp (test_deref_refs): Treat
# As `main' is not present GDB fails to find the proper inferior language.
gdb_test_no_output "set language c++"
-# The goal is to keep the CU (Compilation Unit) unexpanded. It would be rather
-# XFAIL than FAIL here. For example -readnow breaks it.
-gdb_test_no_output "maintenance info symtabs"
+if { ![readnow] } {
+ # Check that the the CU (Compilation Unit) is unexpanded.
+ gdb_test_no_output "maintenance info symtabs"
+}
# GDB has shown only the `long func<short>()' ELF symbol before, not the DWARF
# symbol