Fix passing debug options for gcc
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 3 Nov 2020 17:41:43 +0000 (18:41 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 31 Dec 2020 07:38:19 +0000 (08:38 +0100)
Fix a bug in the test where we were missing "additional_flags=",
causing -gstatement-frontiers not to be passed to the compiler.

The issue was introduced in
eb24648c453c28f2898fb599311ba004394a8b41 ("Fix gdb.cp/step-and-next-inline.exp with Clang").

gdb/testsuite:
2020-12-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>

* gdb.cp/step-and-next-inline.exp: Fix test case.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/step-and-next-inline.exp

index 841078a3fe176b1b11e95118610085595325cda7..c61fab8c07c393902486b9f131b559790ae568ed 100644 (file)
@@ -1,3 +1,7 @@
+2020-12-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       * gdb.cp/step-and-next-inline.exp: Fix test case.
+
 2020-12-30  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * gdb.python/py-frame-args.exp: De-duplicate test names.
index 43a7101150c9d0d2fb51aaa4e5f0efd237abf28f..08a4b88bda7d93ea2c328163eafe48da631407f0 100644 (file)
@@ -38,7 +38,7 @@ proc do_test { use_header } {
 
     set options {c++ debug nowarnings optimize=-O2}
     if { [supports_statement_frontiers] } {
-       lappend options -gstatement-frontiers
+       lappend options additional_flags=-gstatement-frontiers
     }
     if { $use_header } {
        lappend options additional_flags=-DUSE_NEXT_INLINE_H