Add LIBDIR/gdb/python-<version> to Python search path

Daniel Jacobowitz dan@codesourcery.com
Thu May 20 19:23:00 GMT 2010


On Thu, May 20, 2010 at 12:03:47PM -0700, Joel Brobecker wrote:
> > GDB isn't the only program in our distribution that needs an included
> > Python, so we're not going to put it in lib/gdb.  But it'd be nice to
> > have other GDB-private data outside of top-level lib/.
> 
> That would argue in favor if adding an extra switch that allows you
> to override the python libdir.  I can take care of that as part of
> this patch set, for sure, if this helps in your case.

If you're offering, I'm certainly happy.  The key, of course, is that
it's got to be relocatable just like this one.

I'd forgotten; we actually have something a little messier :-(  It
looks like this:

bin/arm-none-eabi-gdb
lib/libpython2.6.so.1.0
lib/python26.zip
lib/python2.6/_socket.so [ et cetera, ~ 50 ]

The zip file reduces the total number of files in the installation
significantly.  So I end up needing to put the zip file and the
directory both onto sys.path.  This may be more generality than the
FSF tree really wants; that's entirely fine by me.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list