[gdb/testsuite] Fix gdb.base/maint.exp FAILs with -readnow
authorTom de Vries <tdevries@suse.de>
Tue, 27 Oct 2020 22:17:09 +0000 (23:17 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 27 Oct 2020 22:17:09 +0000 (23:17 +0100)
commit5868da034f47fd7e5c3d4bf0ba204850df144271
tree2e0ce63db5e94f66d56b5ddd6c6c5fd1e63f2d18
parent06db6ec3d97836d4609d03ac3a3d4e104ad879be
[gdb/testsuite] Fix gdb.base/maint.exp FAILs with -readnow

When running test-case gdb.base/maint.exp with target board readnow, we run
into:
...
FAIL: gdb.base/maint.exp: mt expand-symtabs
FAIL: gdb.base/maint.exp: maint print objfiles: psymtabs
FAIL: gdb.base/maint.exp: maint print psymbols -source
FAIL: gdb.base/maint.exp: maint print psymbols -pc
FAIL: gdb.base/maint.exp: maint info line-table with filename of symtab that \
  is not currently expanded
...

When using -readnow:
- there are no partial symtabs
- all symtabs are expanded at symbol load time
and these differences from normal behaviour cause the FAILs.

Update the tests for -readnow.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-10-27  Tom de Vries  <tdevries@suse.de>

* gdb.base/maint.exp: Update for -readnow.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/maint.exp
This page took 0.028719 seconds and 4 git commands to generate.