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 | |
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')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/vla-cxx.cc | 1 |
2 files changed, 5 insertions, 0 deletions
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]; } |