Re: Time for a MinGW-GDB Upgrade?
Keith Marshall <[email protected]> Sat, 25 Jul 2020 12:12:32 +0100
| Newsgroups | gmane.comp.gnu.mingw.user |
|---|---|
| Organization | MinGW.org Project |
| Message-ID | <[email protected]> |
On 25/07/2020 07:01, Eli Zaretskii wrote:
>> From: Keith Marshall, Fri, 24 Jul 2020 21:37:10 +0100
>>
>> $ gdb --config
>> This GDB was configured as follows:
>> configure --host=mingw32 --target=mingw32
>> ...
>> --with-python=C:/Python27
>> ...
>> --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").
>
> Strange,
Not really.
> it _is_ relocatable in my build of GDB 9.1:
>
> This GDB was configured as follows:
> configure --host=i686-pc-mingw32 --target=i686-pc-mingw32
> ...
> --with-python=d:/usr/Python26 (relocatable)
> ...
> --with-system-gdbinit=d:/usr/etc/gdbinit (relocatable)
From the latter, I deduce that your GDB was configured with
--prefix=d:/usr
and, when you installed Python, you also changed its default prefix from
C:/, to also place it under d:/usr ... which is fine; it is your choice
to make. OTOH, _my_ GDB is configured with
--prefix=C:/MinGW
(which is consistent with convention for _all_ packages distributed by
MinGW.org, as has been enshrined in project policy for years), whereas,
since Python is _not_ distributed by MinGW.org, so I've installed it in
the default prefix prescribed by _its_ distributor, equivalent to
--prefix=C:/Python27
Since, in your case, the GDB and Python prefixes are the same, _your_
GDB views Python as bound to, and relocatable with, GDB. OTOH, in my
case the two prefixes are not the same, so _my_ GDB views Python as
independent, and thus not relocatable with GDB.
--
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+Wj8FAl8cE6EACgkQwK02xjR+ Wj+5EQ//dP8Snl5sBXUMqRXQLrR5D5CUcDUa/TwvXfL7nB8Je7rrWM9gRBhT92RO /GCZnNlBRTp1K0oARFulvoRdEjwX2alaVNmROlFtm5W6eN6sAQ+3/JtsgRmEImeG 14RnMm1JQzdKp+UZo9tLjUHxCQi/lJ6Niv5QAmSgjGLo/nFHosA9vy0Bkr9ZNdZ/ sjSEjUwS8+ybmFe8X93jF6IcX/9eKGFV+B9V0RRL2Dpe+EvNmbi6n4h55jHi+h3V zBPe5Lz/Tk40FekdcT3BSzWTq1RrItKg8C+kLodQTrSqrQkBRXJkfVn6QCHMWs5g pie+mzmvrV7h85lZpo/U4unEW9AbBlJp7kxxFFkXuKxeBquLgZARqb04Z8pL7Mp1 ZkotrqqyYDeESuLIYzHwHryjyhdpTozQKXCcSkzCpgfWgb1MMppHD5Y3FfjTWO75 cxyFmkInF5N81aH7apKQ/E6G/VnCgfbWVrBICWyogXarnvBWb4Vv5pekFLpV7txH +Bu2pZV2RqCxOaTaATuwX1mnctNZ6ryIL8f3jdaUYsYrblFjf2/EK3X5RLvb06oW RIqgN+5+SX3Hip7Dogrx3fiuhEVXWUWoJ8McaFgvfiw8nGSl9Guu47lrYCtr/PkN IF2mh17URIunlhnNTg6OPbhGqaEruDfqEzGFcW/i5fFlwRlzrjk= =CPrA -----END PGP SIGNATURE-----