From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15469 invoked by alias); 21 May 2009 09:44:34 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 15456 invoked by uid 22791); 21 May 2009 09:44:33 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4A147E6B.6000708@redhat.com> References: <41aa4e6c0905201017j68b44350s2141ef8af6895701@mail.gmail.com> <4A147E6B.6000708@redhat.com> Date: Thu, 21 May 2009 09:44:00 -0000 Message-ID: <41aa4e6c0905210244n3dc5ed65m2f42a7c78658b778@mail.gmail.com> Subject: Re: Archer in Cygwin help From: Sreejith To: Phil Muldoon Cc: archer@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2009-q2/txt/msg00103.txt.bz2 2009/5/21 Phil Muldoon : > Sreejith wrote: >> >> I could confirm that python support is available in Cygwin, but >> libstdc++ printers are not working as expected. The following log >> explains more: >> > > If you building from the archer-tromey-python branch, type: > > python import gdb.libstdcxx.v6.printers > > in GDB first. In the Fedora 11 release this is all processed via hooks so= it > is not necessary, but from that branch it is. > > >> (gdb) python print myList >> Traceback (most recent call last): >> =A0File "", line 1, in >> NameError: name 'myList' is not defined >> Error while executing Python code. >> > > Python is expecting to find a Python variable "myList" (which doesn't > exist). If you type the above import statement, and type: > > print myList > > in GDB, does it work for you then? Thanks for your reply. I tried importing gdb.libstdcxx.v6.printers, but couldn't succeed. Please see the following log: $ ./gdb.exe ../../src/a.exe GNU gdb (GDB) 6.8.50.20090509-cvs Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-cygwin". For bug reporting instructions, please see: ... (gdb) python import gdb.libstdcxx.v6.printers Traceback (most recent call last): File "", line 1, in ImportError: No module named libstdcxx.v6.printers Error while executing Python code. You can find the GDB version also. I guess libstdcxx.v6.printers is a python module and the above error looks like some thing is missing in gdb initialization? Please give your comments. Thanks, Sreejith