This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] testsuite: Fix run to main issue introduced by GCC 5.x.
- From: Bernhard Heckel <bernhard dot heckel at intel dot com>
- To: brobecker at adacore dot com
- Cc: gdb-patches at sourceware dot org, "bernhard.heckel" <bernhard dot heckel at intel dot com>
- Date: Mon, 22 Feb 2016 15:49:17 +0100
- Subject: [PATCH] testsuite: Fix run to main issue introduced by GCC 5.x.
- Authentication-results: sourceware.org; auth=none
- References: <1456152558-3962-1-git-send-email-bernhard dot heckel at intel dot com>
From: "bernhard.heckel" <bernhard.heckel@intel.com>
Adding an dummy assignment as an new breakpoint anchor because
breakpoint on return statement doesn't work for GCC 5.x.
2016-02-16 Bernhard Heckel <bernhard.heckel@intel.com>
gdb/Changelog:
* vla-cxx.cc: Insert dummy assignment as anchor for an breakpoint.
---
gdb/testsuite/gdb.cp/vla-cxx.cc | 1 +
1 file changed, 1 insertion(+)
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];
}
--
2.7.1.339.g0233b80