This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] testsuite: Fix run to main issue introduced by GCC 5.x.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]