From 9ac2d526d9ae70272bf7fc436f2e3ad11a84d58b Mon Sep 17 00:00:00 2001 From: "bernhard.heckel" Date: Wed, 2 Mar 2016 16:31:00 +0100 Subject: [PATCH] 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. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.cp/vla-cxx.cc | 1 + 2 files changed, 5 insertions(+) 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]; } -- 2.30.2