[PATCH] gdb: Allow more control over where to find python libraries

Eli Zaretskii eliz@gnu.org
Thu Feb 6 18:31:00 GMT 2020


> From: Andrew Burgess <andrew.burgess@embecosm.com>
> Cc: Richard Bunt <richard.bunt@arm.com>,	Andrew Burgess <andrew.burgess@embecosm.com>
> Date: Thu,  6 Feb 2020 16:46:17 +0000
> 
> The motivation behind this commit is to make it easier to bundle the
> Python libraries with GDB when linking GDB against a static
> libpython, the Python libraries will be manually added into the GDB
> installation tree, and GDB should be able to find them at run-time.
> The installation tree will look like this:
> 
>   .
>   |-- bin/
>   |-- include/
>   |-- lib/
>   |   `-- python3.8/
>   `-- share/
> 
> The benefit here is that the entire installation tree can be bundled
> into a single archive and copied to another machine with a different
> version of Python installed, and GDB will still work, including its
> Python support.

This assumes that the Python libraries and support files are part of
the GDB distribution, right?  But if those are distributed with GDB,
so should be their sources, to adhere to the license, no?



More information about the Gdb-patches mailing list