diff options
author | bernhard.heckel <bernhard.heckel@intel.com> | 2016-03-02 16:31:00 +0100 |
---|---|---|
committer | Bernhard Heckel <bernhard.heckel@intel.com> | 2016-03-02 16:40:55 +0100 |
commit | 9ac2d526d9ae70272bf7fc436f2e3ad11a84d58b (patch) | |
tree | c277f22fdd351223152c2a3052b9f88de86a6ed9 /gdb/testsuite/gdb.cp | |
parent | 178073690aec73fdb5f4452b49f108407edde700 (diff) | |
download | gdb-9ac2d526d9ae70272bf7fc436f2e3ad11a84d58b.zip gdb-9ac2d526d9ae70272bf7fc436f2e3ad11a84d58b.tar.gz gdb-9ac2d526d9ae70272bf7fc436f2e3ad11a84d58b.tar.bz2 |
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.
Diffstat (limited to 'gdb/testsuite/gdb.cp')
-rw-r--r-- | gdb/testsuite/gdb.cp/vla-cxx.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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]; } |