This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] testsuite: Fix run to main issue introduced by GCC 5.x.
- From: Bernhard Heckel <bernhardheckel at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 2 Mar 2016 15:36:04 -0000
- Subject: [binutils-gdb] testsuite: Fix run to main issue introduced by GCC 5.x.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9ac2d526d9ae70272bf7fc436f2e3ad11a84d58b
commit 9ac2d526d9ae70272bf7fc436f2e3ad11a84d58b
Author: bernhard.heckel <bernhard.heckel@intel.com>
Date: Wed Mar 2 16:31:00 2016 +0100
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 <bernhard.heckel@intel.com>
gdb/testsuite/Changelog:
* gdb.cp/vla-cxx.cc: Insert dummy assignment as anchor for an breakpoint.
Diff:
---
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 e14b654..cf69cce 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
+ * gdb.cp/vla-cxx.cc: Insert dummy assignment as anchor for an breakpoint.
+
+2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
+
* gdb.mi/vla.f90: Nullify pointer after declaration.
2016-03-01 Pedro Alves <palves@redhat.com>
diff --git a/gdb/testsuite/gdb.cp/vla-cxx.cc b/gdb/testsuite/gdb.cp/vla-cxx.cc
index 1eb80f2..a1fd510 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];
}