[Mingw-users] Time for a MinGW-GDB Upgrade?

Zurück zum Archiv-Index
Keith Marshall keith****@users*****
Sat Jul 25 05:37:10 JST 2020


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.osdn.me/mailman/archives/mingw-users/attachments/20200724/1db8514d/attachment.sig>


More information about the MinGW-Users mailing list
Zurück zum Archiv-Index