diff options
| author | rillig <rillig@NetBSD.org> | 2022-01-08 23:52:26 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2022-01-08 23:52:26 +0000 |
| commit | d48447f3b87f33a889afb03c27be3947369bfcb2 (patch) | |
| tree | a0b612c69c609571069e018b4e6278122d77b51e /usr.bin/make/unit-tests/opt-debug-parse.mk | |
| parent | 3fbc0bc7ebcbe68118d7f31f3c2b3916f6b90f15 (diff) | |
make: add details about .for loop variables to stack traces
The stack traces are enabled with the debug logging option '-dp'.
Diffstat (limited to 'usr.bin/make/unit-tests/opt-debug-parse.mk')
| -rw-r--r-- | usr.bin/make/unit-tests/opt-debug-parse.mk | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.bin/make/unit-tests/opt-debug-parse.mk b/usr.bin/make/unit-tests/opt-debug-parse.mk index 1a3bdf4d807..c56b46c261b 100644 --- a/usr.bin/make/unit-tests/opt-debug-parse.mk +++ b/usr.bin/make/unit-tests/opt-debug-parse.mk @@ -1,4 +1,4 @@ -# $NetBSD: opt-debug-parse.mk,v 1.5 2022/01/08 23:41:43 rillig Exp $ +# $NetBSD: opt-debug-parse.mk,v 1.6 2022/01/08 23:52:26 rillig Exp $ # # Tests for the -dp command line option, which adds debug logging about # makefile parsing. @@ -24,6 +24,14 @@ # the line of the '.include' instead of the line following it. .include "/dev/null" + +# In .for loops with multiple variables, the variable details are included in +# the stack trace, just as with a single variable. +.for a b c in 1 2 3 ${:U4 5 6} +.info trace +.endfor + + .MAKEFLAGS: -d0 all: .PHONY |
