From: bernhard.heckel Date: Wed, 2 Mar 2016 15:31:00 +0000 (+0100) Subject: testsuite: Fix run to main issue introduced by GCC 5.x. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9ac2d526d9ae70272bf7fc436f2e3ad11a84d58b;p=binutils-gdb.git testsuite: Fix run to main issue introduced by GCC 5.x. Adding a dummy assignment as a new breakpoint anchor because breakpoint on return statement doesn't work for GCC 5.x. 2016-03-02 Bernhard Heckel gdb/testsuite/Changelog: * gdb.cp/vla-cxx.cc: Insert dummy assignment as anchor for an breakpoint. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e14b6540a4f..cf69cce6044 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2016-03-02 Bernhard Heckel + + * gdb.cp/vla-cxx.cc: Insert dummy assignment as anchor for an breakpoint. + 2016-03-02 Bernhard Heckel * gdb.mi/vla.f90: Nullify pointer after declaration. diff --git a/gdb/testsuite/gdb.cp/vla-cxx.cc b/gdb/testsuite/gdb.cp/vla-cxx.cc index 1eb80f262ff..a1fd510e309 100644 --- a/gdb/testsuite/gdb.cp/vla-cxx.cc +++ b/gdb/testsuite/gdb.cp/vla-cxx.cc @@ -45,5 +45,6 @@ int main(int argc, char **argv) vla[i] = 5 + 2 * i; // vlas_filled + vla[0] = 2 * vla[0]; return vla[2]; }