[gdb/testsuite] Detect 'No MPX support'
authorTom de Vries <tdevries@suse.de>
Thu, 14 Apr 2022 10:32:51 +0000 (12:32 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 14 Apr 2022 10:32:51 +0000 (12:32 +0200)
commit75b2a443d515f531299ce1ed942810edd5bf5d84
tree0f8a8a23abdd70722dbfbe8169867fca73fd9cdf
parentc641fe0dcb886dc1b8a235ab2b236275ee46510a
[gdb/testsuite] Detect 'No MPX support'

On openSUSE Leap 15.3, mpx support has been disabled for m32, so I run into:
...
(gdb) run ^M
Starting program: outputs/gdb.arch/i386-mpx/i386-mpx ^M
[Thread debugging using libthread_db enabled]^M
Using host libthread_db library "/lib64/libthread_db.so.1".^M
No MPX support^M
...
and eventually into all sort of fails in this and other mpx test-cases.

Fix this by detecting the "No MPX support" message in have_mpx.

Tested on x86_64-linux with target boards unix and unix/-m32.
gdb/testsuite/lib/gdb.exp