[gdb/testsuite] Add back missing debug for index-cache.exp
authorTom de Vries <tdevries@suse.de>
Wed, 26 Jun 2019 03:52:47 +0000 (05:52 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 26 Jun 2019 03:52:47 +0000 (05:52 +0200)
The proc prepare_for_testing has "debug" as default argument for the options
parameter.

In the commit c596f180a1 "[gdb/testsuite] Compile index-cache.c with
-Wl,--build-id", by setting the options argument we've effectively dropped
"debug".  This causes index-cache.exp to not contain any debug info anymore on
most systems (though not on openSUSE), which causes index-cache.exp FAILs.

Fix this by adding back the missing "debug" option.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2019-06-26  Tom de Vries  <tdevries@suse.de>

* gdb.base/index-cache.exp: Add back missing debug option.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/index-cache.exp

index 8410a09..4f23343 100644 (file)
@@ -1,3 +1,7 @@
+2019-06-26  Tom de Vries  <tdevries@suse.de>
+
+       * gdb.base/index-cache.exp: Add back missing debug option.
+
 2019-06-23  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
 
        * gdb.base/alias.exp: Test non matching/non existing prefixes.
index 6f1488e..f14cbb0 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
-         {additional_flags=-Wl,--build-id}] } {
+         {debug additional_flags=-Wl,--build-id}] } {
     return
 }