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 -------------- 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/20200725/d0a217cf/attachment.sig>