This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: OT: Re: Is it possible to statically link python into gdb?
- From: Terry Guo <flameroc at gmail dot com>
- To: Tim Sander <tim at krieglstein dot org>
- Cc: gdb at sourceware dot org
- Date: Wed, 25 Jun 2014 17:00:34 +0800
- Subject: Re: OT: Re: Is it possible to statically link python into gdb?
- Authentication-results: sourceware.org; auth=none
- References: <CAGbRaL5PAaO-NHojLYfSOjZPsPajYGGb0e8FV2qr5g8OEJXqzQ at mail dot gmail dot com> <214EDCB8-BEE1-4E6D-801E-D57B46AD7424 at dell dot com> <CAGbRaL5VBbF448=wmQ7mZdFirY6jv7dZ3f34uhNt1X-JAa6LxA at mail dot gmail dot com> <1728408 dot r4D3qvlyjx at dabox>
On Wed, Jun 25, 2014 at 4:32 PM, Tim Sander <tim@krieglstein.org> wrote:
> Hi Terry
>> Very appreciate your help. Indeed the python that is statically linked
>> into gdb needs other modules to run correctly. I now worked around
>> this issue by following steps:
>>
>> 1). build and install python 2.7 in dynamic way (produced the
>> libpython2.7.so instead of libpython2.7.a). This python is installed
>> to my own path instead of system path.
>> 2). unset the variable PYTHONHOME and then export
>> PYTHONHOME=MY-OWN-PATH:/usr, then configure, build and install gdb.
>> 3). now copy the gdb to other machine, everything works fine. The only
>> requirement is user will need to install libpython2.7 in their
>> machine.
>>
>> I admit that I have to make a compromise here. I am delivering gdb to
>> my customer and my expectation is that they can use my gdb with python
>> support no matter there is python in their system and no matter the
>> version of their installed python. After a lot of attempts, I think I
>> can't reach my expectation. I guess I have to live with my above
>> workaround.
> Its good you found a workable solution.
>
> I think i have seen your name on the
> https://launchpad.net/gcc-arm-embedded? Is your work on this related? It would
> be really nice to have a python enabled gdb in this toolchain.
>
> I am working on the baremetal plugin for qtcreator. With 3.1, qtcreator has a
> dependecy on a python enabled gdb. It would be really great if there would be
> a ready to use toolchain for this to use for embedded development with
> qtcreator.
>
> Best regards
> Tim
You are right. It's me. Hopefully we will enable this feature in
upcoming 4.9 based release.
BR,
Terry