[gdb/testsuite] Prevent timeout in gdb.ada/float-bits.exp
authorTom de Vries <tdevries@suse.de>
Fri, 2 Dec 2022 07:56:42 +0000 (08:56 +0100)
committerTom de Vries <tdevries@suse.de>
Fri, 2 Dec 2022 07:56:42 +0000 (08:56 +0100)
commit63dc62b25880d4eeabb9eb3a5d691043b2723dd5
tree7c6a38b150fb2a27f539441f858ff7dddd5737c8
parentaaa8dbc1b31233f66131476e03ab8635805e515d
[gdb/testsuite] Prevent timeout in gdb.ada/float-bits.exp

Recent commit 32a5aa26256 ("[gdb/testsuite] Fix gdb.ada/float-bits.exp
for powerpc64le") started using command "maint print architecture", which
produces ~275 lines.

Rewrite the corresponding gdb_test_multiple to read line-by-line, to prevent
timeouts on slower test setups.

Note that this doesn't fix a timeout in the test-case on aarch64 due to:
...
gdbarch_dump: read_core_file_mappings = <0x817438>
(gdb) aarch64_dump_tdep: Lowest pc = 0x0x8000
...

Tested on x86_64-linux.
gdb/testsuite/gdb.ada/float-bits.exp