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
eb24648c45 ("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.
This commit is contained in:
parent
391750c355
commit
4ff509e75b
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user