From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18736 invoked by alias); 31 May 2013 06:00:40 -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 18725 invoked by uid 89); 31 May 2013 06:00:40 -0000 X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO autolearn=ham version=3.3.1 Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 31 May 2013 06:00:39 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id AC9872E3C6; Fri, 31 May 2013 02:00:37 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id bYkINuYUXiXX; Fri, 31 May 2013 02:00:37 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 49DBF2E387; Fri, 31 May 2013 02:00:37 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 4EFA4C237F; Fri, 31 May 2013 10:00:31 +0400 (RET) Date: Fri, 31 May 2013 06:00:00 -0000 From: Joel Brobecker To: Paul Smith Cc: gdb@sourceware.org Subject: Re: GDB with python support: which version of Python? Message-ID: <20130531060031.GC4395@adacore.com> References: <1369951459.3295.229.camel@pdsdesk> <20130531044006.GB4395@adacore.com> <1369979331.4119.19.camel@homebase> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1369979331.4119.19.camel@homebase> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-05/txt/msg00142.txt.bz2 > > 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 :-/. -- Joel