From 4ff509e75bf3488c302bea86b0db3dcdcad30818 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Tue, 3 Nov 2020 18:41:43 +0100 Subject: 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-31 Bernd Edlinger * gdb.cp/step-and-next-inline.exp: Fix test case. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.cp/step-and-next-inline.exp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gdb') diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 841078a..c61fab8 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2020-12-31 Bernd Edlinger + + * gdb.cp/step-and-next-inline.exp: Fix test case. + 2020-12-30 Simon Marchi * gdb.python/py-frame-args.exp: De-duplicate test names. 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 -- cgit v1.1