Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 0DF661A9239 for ; Sat, 8 Aug 2020 13:50:25 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 634F484D51; Sat, 8 Aug 2020 13:50:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id D2EDD84D28 for ; Sat, 8 Aug 2020 13:50:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id F8bh84BpvH8O for ; Sat, 8 Aug 2020 13:50:23 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 6721D84CBC for ; Sat, 8 Aug 2020 13:50:23 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 63AB7FB28; Sat, 8 Aug 2020 13:50:23 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sat, 8 Aug 2020 13:50:23 +0000 From: "Roland Illig" Subject: CVS commit: src/usr.bin/make To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200808135023.63AB7FB28@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Roland Illig" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: rillig Date: Sat Aug 8 13:50:23 UTC 2020 Modified Files: src/usr.bin/make: Makefile var.c src/usr.bin/make/unit-tests: counter.exp vardebug.exp Added Files: src/usr.bin/make: enum.c enum.h Log Message: make(1): add more detailed debug logging for variable modifiers Before a modifier is applied to a variable, it is not yet parsed, therefore it is only possible to log a rough estimate of the modifier. But after applying it, the parsing position has advanced, and the full modifier can be logged. In addition, to fully understand how the modifiers work, it's not enough to just know the variable names and values, there are also some flags that influence how the modifiers behave. The most influential is VARE_WANTRES. Thanks to sjg for the extensive review and valuable feedback on the first drafts. To generate a diff of this commit: cvs rdiff -u -r1.82 -r1.83 src/usr.bin/make/Makefile cvs rdiff -u -r0 -r1.1 src/usr.bin/make/enum.c src/usr.bin/make/enum.h cvs rdiff -u -r1.429 -r1.430 src/usr.bin/make/var.c cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/counter.exp cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/vardebug.exp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.