aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2020-11-03 18:41:43 +0100
committerBernd Edlinger <bernd.edlinger@hotmail.de>2020-12-31 08:38:19 +0100
commit4ff509e75bf3488c302bea86b0db3dcdcad30818 (patch)
tree089a444e79a0bed2c7419e2cff6698096ec572a0 /gdb
parent391750c3554861181bc58aabe75cd4eae91b7f48 (diff)
downloadfsf-binutils-gdb-4ff509e75bf3488c302bea86b0db3dcdcad30818.zip
fsf-binutils-gdb-4ff509e75bf3488c302bea86b0db3dcdcad30818.tar.gz
fsf-binutils-gdb-4ff509e75bf3488c302bea86b0db3dcdcad30818.tar.bz2
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 <bernd.edlinger@hotmail.de> * gdb.cp/step-and-next-inline.exp: Fix test case.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.cp/step-and-next-inline.exp2
2 files changed, 5 insertions, 1 deletions
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 <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.
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