[PATCH 10/11] [gdb/testsuite] Use -g3 in gdb.base/lineinc.exp

Tom de Vries tdevries@suse.de
Tue Jan 21 11:42:11 GMT 2025


On 5/21/24 17:44, Tom de Vries wrote:
> 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.
> 

I've pushed this.

Thanks,
- Tom

> Tested on x86_64-linux.
> ---
>   gdb/testsuite/gdb.base/lineinc.exp | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/gdb/testsuite/gdb.base/lineinc.exp b/gdb/testsuite/gdb.base/lineinc.exp
> index 1fe1390d892..490e39bd0fb 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
>   }



More information about the Gdb-patches mailing list