Re: Time for a MinGW-GDB Upgrade?

Keith Marshall <[email protected]> Fri, 24 Jul 2020 21:37:10 +0100
Newsgroups gmane.comp.gnu.mingw.user
Organization MinGW.org Project
Message-ID <[email protected]>
On 23/07/2020 14:29, Eli Zaretskii wrote:
>> So, in theory, if I configure with "--prefix=C:/MinGW", (or maybe just
>> with "--exec-prefix=C:/MinGW"), and I've arranged it such that testing
>> for Python yields an effective "python_prefix=C:/Python27", (which does
>> not seem to be achieved with "--with-python=C:/Python27" ... it needs a
>> program reference, such as "--with-python=mingw32-python-config", which
>> is assigned to python_prog, and will return the effective prefix when
>> that program is invoked as
>>
>>   ${python_prog} ${srcdir}/python/python-config.py --exec-prefix
>>
>> with the result assigned to python_prefix), then, at least, if the user
>> installs GDB to "x:/MinGW", then that installation should expect to find
>> Python in "x:/Python27"?
> 
> Yes, I'd expect it to work.

Or, perhaps not.  I've now got a working build (running in a Win7 VM)

  $ gdb --config
  This GDB was configured as follows:
     configure --host=mingw32 --target=mingw32
        --with-auto-load-dir=$debugdir:$datadir/auto-load
        --with-auto-load-safe-path=$debugdir:$datadir/auto-load
        --with-expat
        --with-gdb-datadir=C:/MinGW/share/gdb (relocatable)
        --with-jit-reader-dir=C:/MinGW/lib/gdb (relocatable)
        --without-libunwind-ia64
        --without-lzma
        --without-babeltrace
                        --without-intel-pt
        --with-mpfr
        --without-xxhash
        --with-python=C:/Python27
        --without-guile
        --disable-source-highlight
        --with-separate-debug-dir=C:/MinGW/lib/debug (relocatable)
        --with-sysroot=C:/MinGW (relocatable)
        --with-system-gdbinit=C:/MinGW/... (relocatable)

  ("Relocatable" means the directory can be moved with the GDB
  installation tree, and GDB will still find it.)

Note that "C:/Python27" is the default installation location, as set by
Python.org's MSI installer, (just as C:/MinGW is default for a MinGW
installation delivered by mingw-get).  It appears that it will remain at
C:/Python27, even if a MinGW GDB installation is relocated elsewhere;
(C:/Python27 is not identified as relocatable, by "gdb --config").

-- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F

_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEwZ7AGBVH3lDh1I9TwK02xjR+Wj8FAl8bRnkACgkQwK02xjR+
Wj+Omw//R+Pd03E1jL7ZLB2LWPcOgyYGDYlXL9D+4cORPpyi9iNMrWBrzC4smPhe
H0pv5cOI/VgT7gmRReK3eOlZPJETJO5a4dS4/DgopgnWI2rNyYPWJAfCBKv28hVM
GkFGqsG9zt4GsLTfMiI2LcgRfsvNyqVi22lgKkrhCTXA3jVyAh6p/3EmoSBD/PS8
+nqPMSmoj/4ELc5EMJIWKC2wSqs0UZ0NNsip2ygcpllxXAoKmvxWSBbC2v2tM1ER
YitTiHGt3ylMjwycYCuoNKilu1x2XaW4zPilMTwe363UDTNBAbqFnvpguVtKtqKD
2BnGVroaZFFvOewRruTqEfy10egEeZNPtkymO3QvXMwY4NdkqyNIwzXDehX0fwmL
gj4VDKVCS0ZHzkfmFR7H2/vitEubwtJpQQS95ckIrmy8a1WWhlscTzm7rp0JG9tk
HGTYlYBEliGJRAJho8DH982+z1NHKuGlEanFftQaZLd9+tFHuk8ChPi64dLrBQ7d
AGzQ8+4+O/ixqxyny6enHjkjuxpMLCa0R00KkKtQanye+kCPN71tlse/3GksdQml
2U7GxMHtRD6yBkbPbuioMSWW8LyVAs/V+NOzxE9KfgFUprSpVZkQJpj4t19HSLab
tS+Fp+gqOQhl6bBkIPtz8r70OZwnTT1aD5MBwZuZvNYOJJeN29o=
=xUvy
-----END PGP SIGNATURE-----