From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11448 invoked by alias); 14 Sep 2012 06:26:55 -0000 Received: (qmail 11437 invoked by uid 22791); 14 Sep 2012 06:26:53 -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:26:40 +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 66F93B4098C; Fri, 14 Sep 2012 02:26:37 -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: <20120914061549.GA6011@host2.jankratochvil.net> Date: Fri, 14 Sep 2012 06:26:00 -0000 Cc: Khoo Yit Phang , Tom Tromey , GDB Patches Content-Transfer-Encoding: quoted-printable Message-Id: <54EDADDA-035D-47FB-802F-5B0C86BF37A0@cs.umd.edu> References: <87obldbom1.fsf@fleche.redhat.com> <446971D4-9F73-4CD9-B307-C22D4C079305@cs.umd.edu> <87zk4t1w1z.fsf@fleche.redhat.com> <20120914054758.GA5191@host2.jankratochvil.net> <20120914061549.GA6011@host2.jankratochvil.net> To: Jan Kratochvil X-CSD-MailScanner-ID: 66F93B4098C.A0BE6 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: 1348208798.5519@IOcxwdAvUVSFO9JjylhOeA 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/msg00264.txt.bz2 Hi Jan, On Sep 14, 2012, at 2:15 AM, Jan Kratochvil wrote: > On Fri, 14 Sep 2012 07:59:46 +0200, Khoo Yit Phang wrote: >> Is ./gdb from a GDB build directory? If so, the error is expected; you'd >> need to run with -data-directory build-directory/gdb/data-directory, sin= ce >> much of the Python initialization has been moved into >> data-directory/python/gdb/__init__.py, and the old __init__.py is >> incompatible. >=20 > In such case there is a need to update gdb/contrib/cc-with-tweaks.sh . >=20 > runtest CC_FOR_TARGET=3D/bin/sh\ $PWD/../contrib/cc-with-tweaks.sh\ -i\ g= cc gdb.base/display.exp=20 > [...] > Running ./gdb.base/display.exp ... > gdb compile failed, Python Exception name '= os' is not defined:=20 > warning: Could not load the Python gdb module from `/usr/share/gdb/python= '. > warning: Limited Python support is available from the _gdb module. > =3D=3D=3D gdb Summary =3D=3D=3D > # of untested testcases 1 How do you run this? I can't seem to figure it out: % cd build-directory/gdb/testsuite % runtest CC_FOR_TARGET=3D/bin/sh\ $PWD/../../../gdb/contrib/cc-with-tweaks= .sh\ -i\ gcc gdb.base/display.exp WARNING: No tool specified Test Run By khooyp on Fri Sep 14 02:24:12 2012 Native configuration is i686-pc-linux-gnu =3D=3D=3D tests =3D=3D=3D Schedule of variations: unix Running target unix Using /usr/share/dejagnu/baseboards/unix.exp as board description file for = target. Using /usr/share/dejagnu/config/unix.exp as generic interface file for targ= et. WARNING: Couldn't find tool config file for unix, using default. =3D=3D=3D Summary =3D=3D=3D % cd source-directory/gdb/testsuite % runtest CC_FOR_TARGET=3D/bin/sh\ $PWD/../contrib/cc-with-tweaks.sh\ -i\ g= cc gdb.base/display.exp WARNING: No tool specified Test Run By khooyp on Fri Sep 14 02:22:07 2012 Native configuration is i686-pc-linux-gnu =3D=3D=3D tests =3D=3D=3D Schedule of variations: unix Running target unix Using /usr/share/dejagnu/baseboards/unix.exp as board description file for = target. Using /usr/share/dejagnu/config/unix.exp as generic interface file for targ= et. Using ./config/unix.exp as tool-and-target-specific interface file. `site.exp' not found, run `make site.exp'! % make site.exp remake: *** No rule to make target `site.exp'. Stop. Yit September 14, 2012