1 1.3 rillig # $NetBSD: opt-debug-parse.mk,v 1.3 2022/01/08 22:13:43 rillig Exp $ 2 1.1 rillig # 3 1.1 rillig # Tests for the -dp command line option, which adds debug logging about 4 1.1 rillig # makefile parsing. 5 1.1 rillig 6 1.2 rillig .MAKEFLAGS: -dp 7 1.2 rillig 8 1.1 rillig # TODO: Implementation 9 1.1 rillig 10 1.2 rillig # In PrintStackTrace, the line number of the .for loop is wrong. The actual 11 1.2 rillig # line number printed is the last line before the loop body, while it should 12 1.2 rillig # rather be the line number where the .for loop starts. 13 1.2 rillig .for \ 14 1.2 rillig var \ 15 1.2 rillig in \ 16 1.2 rillig value 17 1.2 rillig .info trace with multi-line .for loop head 18 1.2 rillig .endfor 19 1.3 rillig # FIXME: The .exp file says 'in .include from opt-debug-parse.mk:19', which is 20 1.2 rillig # completely wrong. It should rather say 'in .for loop from :13'. 21 1.2 rillig 22 1.3 rillig # XXX: The debug log should return to "line 24" instead of "line 23". 23 1.3 rillig .include "/dev/null" 24 1.3 rillig 25 1.2 rillig .MAKEFLAGS: -d0 26 1.2 rillig 27 1.2 rillig all: .PHONY 28