MSYS2-packages/msys2-runtime/0014-Add-debugging-for-build_argv.patch
Johannes Schindelin f1413819a4 msys2-runtime: backport recent console patches
These hacks were proposed in Cygwin as a more complete set of
workarounds superseding Git for Windows'
https://github.com/git-for-windows/msys2-runtime/commit/1d0701d

This commit corresponds to
https://github.com/msys2/msys2-runtime/pull/86

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2022-02-15 09:58:40 +01:00

26 lines
722 B
Diff

From eede69db25295d637864a1c6d8da1fa5811472b8 Mon Sep 17 00:00:00 2001
From: Ray Donnelly <mingw.android@gmail.com>
Date: Fri, 21 Aug 2015 12:18:52 +0100
Subject: [PATCH 14/N] Add debugging for build_argv
---
winsup/cygwin/dcrt0.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index 3d7974e..3434316 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -310,6 +310,8 @@ build_argv (char *cmd, char **&argv, int &argc, int winshell, int glob)
argvlen = 0;
argv = NULL;
+ debug_printf ("cmd = '%s', winshell = %d, glob = %d", cmd, winshell, glob);
+
/* Scan command line until there is nothing left. */
while (*cmd)
{
--
2.35.1