]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Use -g3 in gdb.base/lineinc.exp
authorTom de Vries <tdevries@suse.de>
Tue, 21 Jan 2025 11:41:39 +0000 (12:41 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 21 Jan 2025 11:41:39 +0000 (12:41 +0100)
The stated intention of test-case gdb.base/lineinc.exp is:
...
 # Test macro handling of #included files.
...

However, the test-case does not produce any macro debug information.

Fix this by adding macros in the compilation flags.

Tested on x86_64-linux.

gdb/testsuite/gdb.base/lineinc.exp

index 23861138a7a7a3ed5b3b09173b3ca002346d4780..df5e9676e92b9b4f15c49a67e29ea1eba69b2e4b 100644 (file)
@@ -80,7 +80,8 @@
 
 standard_testfile .c
 
-if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" ${binfile} executable {debug}] != ""} {
+if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" ${binfile} executable \
+        {debug macros}] != ""} {
     untested "failed to compile"
     return -1
 }