From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31760 invoked by alias); 28 Oct 2013 21:17:20 -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 31747 invoked by uid 89); 28 Oct 2013 21:17:19 -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,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: fencepost.gnu.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (208.118.235.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 28 Oct 2013 21:17:18 +0000 Received: from 173-9-45-73-newengland.hfc.comcastbusiness.net ([173.9.45.73]:60629 helo=[10.1.37.145]) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1VauBX-0000qO-13; Mon, 28 Oct 2013 17:17:15 -0400 Message-ID: <1382995034.3496.81.camel@pdsdesk> Subject: Re: Running without Python From: Paul Smith Reply-To: psmith@gnu.org To: Tom Tromey Cc: GDB Development Date: Mon, 28 Oct 2013 21:17:00 -0000 In-Reply-To: <87txg19kx9.fsf@fleche.redhat.com> References: <1382993004.3496.79.camel@pdsdesk> <87txg19kx9.fsf@fleche.redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00172.txt.bz2 On Mon, 2013-10-28 at 14:53 -0600, Tom Tromey wrote: > >>>>> "Paul" == Paul Smith writes: > > Paul> But, it pretty much just stops: > Paul> $ my-gdb > Paul> Could not find platform independent libraries > Paul> Could not find platform dependent libraries > Paul> Consider setting $PYTHONHOME to [:] > Paul> ImportError: No module named site > Paul> $ > > Paul> Any thoughts about this? I guess I need to build GDB twice, once with > Paul> Python for those systems that can use it and once without for those > Paul> systems that don't have it. Is there any interest in making this work > Paul> "better"? > > This should be better in a more recent gdb. Please try git master. > We've made it so that if Python initialization fails, then gdb still > works but disables all the Python functionality. Is this in 7.6.1, or just master? > However, we haven't done the dlopen thing. It's been discussed but I > think it is difficult to do sanely, and especially difficult to do in a > way that handles differences between versions of libpython. That's OK with me, actually, because I've linked python statically so I don't have to worry about it. It's just the support .py stuff that's missing when I copy GDB around. Cheers!