[gdb/testsuite] Fix gdb.base/float128.exp with --with-mpfr=no
authorTom de Vries <tdevries@suse.de>
Fri, 11 Dec 2020 12:55:04 +0000 (13:55 +0100)
committerTom de Vries <tdevries@suse.de>
Fri, 11 Dec 2020 12:55:04 +0000 (13:55 +0100)
commit9cd7a95a2bb9ba9d5a6af022e5454c8ce78aee56
tree577d2cd95c8df7dd64f11140a98a104cc4ac0233
parent4483a8e72ad265b5d428899d384bf190db071759
[gdb/testsuite] Fix gdb.base/float128.exp with --with-mpfr=no

When configuring gdb using --with-mpfr=no and running test-case
gdb.base/float128.exp, we run into:
...
FAIL: gdb.base/float128.exp: print large128 (GDB may be missing MPFR support!)
...

Fix this by detecting that gdb was build without mpfr using the show
configuration command, and changing the FAIL into UNSUPPORTED.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-12-11  Tom de Vries  <tdevries@suse.de>

PR testsuite/26954
* gdb.base/float128.exp: Detect and handle no mpfr support.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/float128.exp