From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2492 invoked by alias); 25 Jun 2014 08:32: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 2478 invoked by uid 89); 25 Jun 2014 08:32:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=AWL,BAYES_00,HELO_DYNAMIC_IPADDR,RDNS_DYNAMIC autolearn=no version=3.3.2 X-HELO: lvps176-28-13-145.dedicated.hosteurope.de Received: from lvps176-28-13-145.dedicated.hosteurope.de (HELO lvps176-28-13-145.dedicated.hosteurope.de) (176.28.13.145) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 25 Jun 2014 08:32:36 +0000 Received: from dabox.localnet (unknown [62.159.134.147]) by lvps176-28-13-145.dedicated.hosteurope.de (Postfix) with ESMTPSA id 0406F1BF5C001; Wed, 25 Jun 2014 10:32:34 +0200 (CEST) From: Tim Sander To: Terry Guo Cc: Paul_Koning@dell.com, gdb@sourceware.org, Antonio Cavallo Subject: OT: Re: Is it possible to statically link python into gdb? Date: Wed, 25 Jun 2014 08:32:00 -0000 Message-ID: <1728408.r4D3qvlyjx@dabox> User-Agent: KMail/4.13 (Linux/3.13.0; KDE/4.13.0; x86_64; ; ) In-Reply-To: References: <214EDCB8-BEE1-4E6D-801E-D57B46AD7424@dell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00078.txt.bz2 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