From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4614 invoked by alias); 25 Jun 2014 09:00:39 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 4513 invoked by uid 89); 25 Jun 2014 09:00:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ve0-f180.google.com Received: from mail-ve0-f180.google.com (HELO mail-ve0-f180.google.com) (209.85.128.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 25 Jun 2014 09:00:37 +0000 Received: by mail-ve0-f180.google.com with SMTP id jw12so1639911veb.39 for ; Wed, 25 Jun 2014 02:00:35 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.58.107.146 with SMTP id hc18mr5767246veb.37.1403686834802; Wed, 25 Jun 2014 02:00:34 -0700 (PDT) Received: by 10.221.50.202 with HTTP; Wed, 25 Jun 2014 02:00:34 -0700 (PDT) In-Reply-To: <1728408.r4D3qvlyjx@dabox> References: <214EDCB8-BEE1-4E6D-801E-D57B46AD7424@dell.com> <1728408.r4D3qvlyjx@dabox> Date: Wed, 25 Jun 2014 09:00:00 -0000 Message-ID: Subject: Re: OT: Re: Is it possible to statically link python into gdb? From: Terry Guo To: Tim Sander Cc: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00079.txt.bz2 On Wed, Jun 25, 2014 at 4:32 PM, Tim Sander 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