From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2711 invoked by alias); 14 Sep 2012 06:00:32 -0000 Received: (qmail 2701 invoked by uid 22791); 14 Sep 2012 06:00:28 -0000 X-SWARE-Spam-Status: No, hits=-3.9 required=5.0 tests=BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from server-nat-6.cs.umd.edu (HELO bacon.cs.umd.edu) (128.8.127.149) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 14 Sep 2012 06:00:03 +0000 Received: from [192.168.32.2] (pool-96-240-134-12.washdc.fios.verizon.net [96.240.134.12]) (Authenticated sender: khooyp) by bacon.cs.umd.edu (Postfix) with ESMTPSA id 11AF2B40867; Fri, 14 Sep 2012 01:59:51 -0400 (EDT) Subject: Re: Regression for --batch [Re: [RFC] Make python/lib/gdb and submodules proper Python modules] Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Khoo Yit Phang In-Reply-To: <20120914054758.GA5191@host2.jankratochvil.net> Date: Fri, 14 Sep 2012 06:00:00 -0000 Cc: Khoo Yit Phang , Tom Tromey , GDB Patches Content-Transfer-Encoding: quoted-printable Message-Id: References: <87obldbom1.fsf@fleche.redhat.com> <446971D4-9F73-4CD9-B307-C22D4C079305@cs.umd.edu> <87zk4t1w1z.fsf@fleche.redhat.com> <20120914054758.GA5191@host2.jankratochvil.net> To: Jan Kratochvil X-CSD-MailScanner-ID: 11AF2B40867.AE971 X-CSD-MailScanner: Found to be clean X-CSD-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-50, required 5, autolearn=not spam, ALL_TRUSTED -50.00) X-CSD-MailScanner-From: khooyp@cs.umd.edu X-CSD-MailScanner-Watermark: 1348207192.24949@wJe5vCSUpNYzg9y5hMOI6A Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-09/txt/msg00261.txt.bz2 Hi Jan, On Sep 14, 2012, at 1:47 AM, Jan Kratochvil wrote: > Hi Yit, >=20 > On Thu, 13 Sep 2012 23:51:08 +0200, Khoo Yit Phang wrote: >> Thanks, I've checked in the patch. >=20 > $ ./gdb --batch > Python Exception name 'os' is not defined:= =20 >=20 > warning: Could not load the Python gdb module from `/usr/share/gdb/python= '. >=20 > warning: Limited Python support is available from the _gdb module. Is ./gdb from a GDB build directory? If so, the error is expected; you'd ne= ed to run with -data-directory build-directory/gdb/data-directory, since mu= ch of the Python initialization has been moved into data-directory/python/g= db/__init__.py, and the old __init__.py is incompatible. Yit September 14, 2012