From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31873 invoked by alias); 28 Oct 2013 20:43:29 -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 31857 invoked by uid 89); 28 Oct 2013 20:43:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 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 20:43:27 +0000 Received: from 173-9-45-73-newengland.hfc.comcastbusiness.net ([173.9.45.73]:60489 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 1Vatem-0002kR-RX for gdb@sourceware.org; Mon, 28 Oct 2013 16:43:25 -0400 Message-ID: <1382993004.3496.79.camel@pdsdesk> Subject: Running without Python From: Paul Smith Reply-To: psmith@gnu.org To: GDB Development Date: Mon, 28 Oct 2013 20:43:00 -0000 Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00170.txt.bz2 I had a naive hope that if I built my own GDB (7.6) with Python support, then I needed to copy it to another system to do some debugging (because my code is compiled with GCC 4.8.1 and the other system doesn't have a new-enough GDB to debug the new object file format) where that other system didn't have an appropriate Python, that my GDB would still work. Like, GDB would try to dlopen() the Python library, discover it wasn't available, shrug, and continue on letting me debug using "classic" commands with just some minor grumbling. But, it pretty much just stops: $ my-gdb Could not find platform independent libraries Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] ImportError: No module named site $ Any thoughts about this? I guess I need to build GDB twice, once with Python for those systems that can use it and once without for those systems that don't have it. Is there any interest in making this work "better"? Cheers!