From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2225 invoked by alias); 24 Oct 2012 15:05:42 -0000 Received: (qmail 2217 invoked by uid 22791); 24 Oct 2012 15:05:42 -0000 X-SWARE-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-wi0-f169.google.com (HELO mail-wi0-f169.google.com) (209.85.212.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Oct 2012 15:05:38 +0000 Received: by mail-wi0-f169.google.com with SMTP id hq4so4099703wib.0 for ; Wed, 24 Oct 2012 08:05:36 -0700 (PDT) Received: by 10.180.100.97 with SMTP id ex1mr6567634wib.17.1351091136774; Wed, 24 Oct 2012 08:05:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.95.134 with HTTP; Wed, 24 Oct 2012 08:05:16 -0700 (PDT) In-Reply-To: References: From: Kevin Pouget Date: Wed, 24 Oct 2012 15:05:00 -0000 Message-ID: Subject: Fwd: GDB/Python conflicts between HEAD and Fedora To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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 X-SW-Source: 2012-10/txt/msg00102.txt.bz2 Hello, It looks like I have a conflict in my system (Fedora 17) between the package provided GDB and the version I build from the tree, am I the only one ? > ./gdb/gdb #from up-to-date git tree > Python Exception name 'os' is not defined: > > warning: Could not load the Python gdb module from `/usr/share/gdb/python'. > > warning: Limited Python support is available from the _gdb module. > [...license details ...] > Couldn't load Python: name 'os' is not defined > Traceback (most recent call last): > [local python file imported from .gdbinit] > import gdb > File "/usr/share/gdb/python/gdb/__init__.py", line 25, in > 'gdb.function': os.path.join(gdb.PYTHONDIR, 'gdb', 'function'), > NameError: name 'os' is not defined /usr/share/gdb/python/gdb/__init__.py is provided by Fedora, and 'os' is indeed not imported On the other hand, the GDB version provided by fedora package works as expected, with my Python scripts taken into account. So, do you have any clue why gdb tries to load these system files, and certainly bugs because of a version mismatch ? Just for information the two versions I use are : GNU gdb (GDB) Fedora (7.4.50.20120120-52.fc17) GNU gdb (GDB) 7.5.50.20121024-cvs Cordially, Kevin