From 15ba1f805e60264a584b321a0eab56f3233e854b Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Tue, 3 Nov 2020 18:41:43 +0100 Subject: [PATCH] Fix passing debug options for gcc 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-30 Bernd Edlinger * gdb.cp/step-and-next-inline.exp: Fix test case. --- gdb/testsuite/gdb.cp/step-and-next-inline.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.cp/step-and-next-inline.exp b/gdb/testsuite/gdb.cp/step-and-next-inline.exp index 43a7101..08a4b88 100644 --- a/gdb/testsuite/gdb.cp/step-and-next-inline.exp +++ b/gdb/testsuite/gdb.cp/step-and-next-inline.exp @@ -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 -- 1.9.1