Subject: bug#69795: 29.1; cmdproxy.exe exits automatically after executing MSYS2 commands

From: [email-masked]
Date: Tue, 19 Mar 2024 22:21:09 +0900

Eli Zaretskii <[email-masked]> writes:

> So you have an MSYS build of iconv.exe, and it seems to be causing
> these problems.  You don't have a MinGW64 build of iconv.exe (in the
> c:\msys64\mingw64\bin\ directory).  So if GD|B needs to invoke
> iconv.exe, it will invoke the MSYS build, as it cannot find any other
> one.  So my suggestion is to download the MinGW64 build of iconv.exe
> and install it in the c:\msys64\mingw64\bin\ directory.  It is
> supposed to be part of the libiconv package, I think this is it:
>
>   https://packages.msys2.org/package/mingw-w64-x86_64-libiconv
>
> Please tell if doing that solves the problem.

MinGW64 libiconv package has already been installed,
but MinGW64 iconv package was not.
Now both of them are installed, and gdb seems to work well with shell-mode.

Microsoft Windows [Version 10.0.19045.4170]
(c) Microsoft Corporation. All rights reserved.

c:\tmp>set PATH=c:\msys64\mingw64\bin\;c:\msys64\usr\bin\;%PATH%
set PATH=c:\msys64\mingw64\bin\;c:\msys64\usr\bin\;%PATH%

c:\tmp>where gdb
where gdb
c:\msys64\mingw64\bin\gdb.exe

c:\tmp>where iconv
where iconv
c:\msys64\mingw64\bin\iconv.exe
c:\msys64\usr\bin\iconv.exe

c:\tmp>gdb
gdb
GNU gdb (GDB) 13.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
c:\home\yagi/.gdbinit:1: Error in sourced command file:
Argument required (expression to compute).
(gdb) q

c:\tmp>iconv --version
iconv --version
iconv (GNU libiconv 1.17)
Copyright (C) 2000-2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Bruno Haible.

c:\tmp>