From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11077 invoked by alias); 11 Mar 2011 20:48:47 -0000 Received: (qmail 11069 invoked by uid 22791); 11 Mar 2011 20:48:47 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Mar 2011 20:48:43 +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 p2BKmfDe016416 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 11 Mar 2011 15:48:41 -0500 Received: from host1.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p2BKmdxx016548 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 11 Mar 2011 15:48:41 -0500 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p2BKmdCU015597; Fri, 11 Mar 2011 21:48:39 +0100 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p2BKmcDv015588; Fri, 11 Mar 2011 21:48:38 +0100 Date: Fri, 11 Mar 2011 20:48:00 -0000 From: Jan Kratochvil To: Michael Snyder Cc: "gdb@sourceware.org" Subject: Re: python help(gdb) doesn't work in my local build. Message-ID: <20110311204837.GA15389@host1.jankratochvil.net> References: <4D7A7BCA.5000408@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D7A7BCA.5000408@vmware.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2011-03/txt/msg00093.txt.bz2 On Fri, 11 Mar 2011 20:45:14 +0100, Michael Snyder wrote: > No such file or directory: '/usr/local/share/gdb/python/gdb' > > 1) What do I do to tell it where to look locally? > 2) What do I do to install this by hand? GDB is intentionally omitted from the standalone-Python help. On correctly Fedora 14 x86_64 installed Python+GDB: $ python -c 'help(gdb)' Traceback (most recent call last): File "", line 1, in NameError: name 'gdb' is not defined $ gdb -q -nx -ex 'python help(gdb)' -ex q Help on package gdb: NAME gdb [...] GDB part of the help was intentionally moved out of the standard Python help directory tree as reading the code providing help texts requires to load the whole such Python modules which require the bindings provided by GDB itself. http://bugs.python.org/issue7015 https://bugzilla.redhat.com/show_bug.cgi?id=526313 $ python >>> help() help> modules gdb Here is a list of matching modules. Enter any module name to get more help. Traceback (most recent call last): class RequireCommand (gdb.Command): AttributeError: 'module' object has no attribute 'Command' Regards, Jan