[gdb/testsuite] Handle some test-cases with older compiler
authorTom de Vries <tdevries@suse.de>
Tue, 29 Aug 2023 15:27:19 +0000 (17:27 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 29 Aug 2023 15:27:19 +0000 (17:27 +0200)
commit62b28bd6688c933b9ffa56f53be1f827450625a7
treefbaa4d218b25357d897c7cd1ad4759089809d946
parentee12f46f45cd2dd6a7638d1bdc6534301a9c55ba
[gdb/testsuite] Handle some test-cases with older compiler

When running test-case gdb.mi/print-simple-values.exp with gcc 4.8.4, I run
into a compilation failure due to the test-case requiring c++11 and the
compiler defaulting to less than that.

Fix this by compiling with -std=c++11.

Likewise in a few other test-cases.

Tested on x86_64-linux.
gdb/testsuite/gdb.dwarf2/gdb-index-cxx.exp
gdb/testsuite/gdb.dwarf2/nullptr_t.exp
gdb/testsuite/gdb.fortran/mixed-lang-stack.exp
gdb/testsuite/gdb.linespec/cpcompletion.exp
gdb/testsuite/gdb.mi/print-simple-values.exp