From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17653 invoked by alias); 31 May 2013 10:18:51 -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 17629 invoked by uid 89); 31 May 2013 10:18:48 -0000 X-Spam-SWARE-Status: No, score=-8.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 31 May 2013 10:18:47 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4VAIhn8027144 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 31 May 2013 06:18:44 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r4VAIfWX007955; Fri, 31 May 2013 06:18:42 -0400 Message-ID: <51A87901.8080401@redhat.com> Date: Fri, 31 May 2013 10:18:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: Joel Brobecker CC: Paul Smith , gdb@sourceware.org Subject: Re: GDB with python support: which version of Python? References: <1369951459.3295.229.camel@pdsdesk> <20130531044006.GB4395@adacore.com> <1369979331.4119.19.camel@homebase> <20130531060031.GC4395@adacore.com> In-Reply-To: <20130531060031.GC4395@adacore.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-05/txt/msg00143.txt.bz2 On 05/31/2013 07:00 AM, Joel Brobecker wrote: >>> Forcing static libraries might work on GNU/Linux systems, but >>> we've found it to be unworkable in general. >> >> Interesting; what kinds of problems did you have? > > Actually, I take back what I said, I was completely confused. > Sorry! We are indeed using static libraries as far as I can > tell. The relocation is still necessary, because Python needs > to be able to find its runtime. > > I had this idea at some point of having GDB dlopen libpython, > which case it'd be possible to ship shared Python libraries > without having to worry about LD_LIBRARY_PATH. But our experience > with VxWorks (WTX) libraries, where we do this, and the fact > that we have been able to use static libraries, led me to put > this idea on the side for now. > >>> Here is what we do at AdaCore: we build and install GDB inside >>> GDB's prefix, >> >> I assume you mean build and install _Python_ inside GDB's prefix? > > Yes. I clearly needed more coffee this morning before answering :-/. > IMO, it'd be super nice if we had a page in the wiki describing this use case, and the mechanism people use to solve it. Seems like everyone who builds relocatable gdbs meant to be installed in a multitude of systems (as opposed to a system/distro gdb), ends up needing to know this. -- Pedro Alves