PS C:\Windows\system32> D:\Desktop\GDB\setup-mingw64.ps1
Updating the installation. Accept the proposed changes. If the window doesn't close on its own then close it and re-run the script when it finishes.
Now we'll install the dependencies. Accept the installation as usual. About half-way through it will stop with a message about fontconfig. Just type "Return" at it and it will resume after a minute or two (be patient!) and complete the installation.
Next we'll install the HTML Help Workshop includes and libraries into our MinGW directory.
/usr/bin/bash: /mingw32/bin/gendef: No such file or directory
/usr/bin/bash: /mingw32/bin/dlltool: No such file or directory
Clone the gnucash-on-windows repository into the target source directory, patch jhbuild to disable its DESTDIR dance and set up jhbuildrc with our prefixes.


    Diretório: C:\gcdev64


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----       02/04/2018     23:34                src
Cloning into '/c/gcdev64/src/gnucash-on-windows.git'...
remote: Counting objects: 3720, done.
remote: Compressing objects: 100% (66/66), done.
remote: Total 3720 (delta 51), reused 63 (delta 28), pack-reused 3626Receiving objects: 100% (3720/3720), 1.44 MiB | 23.Receiving objects: 100% (3720/3720), 1.44 MiB | 26.00 KiB/s, done.
Resolving deltas: 100% (2531/2531), done.
Your build environment is now ready to use. Open an MSys2/mingw32 shell from the start menu, cd to /c/gcdev64, and run
jhbuild -f src/gnucash-on-windows.git/jhbuildrc build
Note that the build will not work with the plain MSys2 shell!


PS C:\Windows\system32>
===============================================================================================================================

ZEUS@DESKTOP-1TUR5C9 MINGW32 ~
$ gdb /c/Program\ Files\ \(x86\)/gnucash/bin/gnucash
GNU gdb (GDB) 7.12
Copyright (C) 2016 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 "i686-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://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"...
Traceback (most recent call last):
  File "<string>", line 3, in <module>
ImportError: No module named libstdcxx.v6.printers

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
