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

Andrew Burgess andrew.burgess@embecosm.com
Thu Feb 20 19:22:00 GMT 2020


* Tom Tromey <tromey@adacore.com> [2020-02-20 09:59:56 -0700]:

> >>>>> "Andrew" == Andrew Burgess <andrew.burgess@embecosm.com> writes:
> 
> Andrew> The only change since v1 is rewording of the commit message to make
> Andrew> the aim of the patch clearer.
> 
> FWIW, we have a similar situation; one additional thing we do is arrange
> to call Py_SetPythonHome to ensure that the user's PYTHONPATH doesn't
> break gdb.
> 
> It would be good if the standard gdb did this (I think someone filed
> something like this in bugzilla), but I'm not sure it can be done in a
> way that's consistent with gdb's other goals, like relocatability.

I suspect these bugs:

  https://sourceware.org/bugzilla/show_bug.cgi?id=23014
  https://sourceware.org/bugzilla/show_bug.cgi?id=22503

are the ones.

I'll need to think a bit more about what the implications are of
making this change...

Thanks,
Andrew



More information about the Gdb-patches mailing list