From: Tom de Vries Date: Tue, 21 Jan 2025 11:41:39 +0000 (+0100) Subject: [gdb/testsuite] Use -g3 in gdb.base/lineinc.exp X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94b3bbb668e86021713489bb501cb6e3823ae1c1;p=thirdparty%2Fbinutils-gdb.git [gdb/testsuite] Use -g3 in gdb.base/lineinc.exp 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. --- diff --git a/gdb/testsuite/gdb.base/lineinc.exp b/gdb/testsuite/gdb.base/lineinc.exp index 23861138a7a..df5e9676e92 100644 --- a/gdb/testsuite/gdb.base/lineinc.exp +++ b/gdb/testsuite/gdb.base/lineinc.exp @@ -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 }