X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.7 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: <20090519132447.GA6016@tishler.net> References: <41aa4e6c0905151405t9925f2byb698c817ee786075 AT mail DOT gmail DOT com> <41aa4e6c0905160919l57f52d7dx9020fb3d5cae4014 AT mail DOT gmail DOT com> <4A11A937 DOT 3010503 AT cygwin DOT com> <41aa4e6c0905190334v4a533772ice103d5d9eb4dbf8 AT mail DOT gmail DOT com> <20090519132447 DOT GA6016 AT tishler DOT net> Date: Wed, 20 May 2009 21:46:01 +0530 Message-ID: <41aa4e6c0905200916p1296cadbo7bd384a998946fe1@mail.gmail.com> Subject: Re: Python enabled GDB (Archer) -Help From: Sreejith To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 2009/5/19 Jason Tishler : > Sreejith, > > On Tue, May 19, 2009 at 04:04:06PM +0530, Sreejith wrote: >> The observation is that python static library (in case of linux- >> libpython2.5.so in /usr/lib/) is missing in cygwin and that is exactly >> what gcc is complaining when building gdb (please refer to the config >> log in my previous post). I dont know whether this is handled >> differently in cygwin. Please give your suggestions. > > Can you get configure to add "-L/usr/lib/python2.5/config" when linking? > I think the following should work: > > =A0 =A0$ LDFLAGS=3D-L/usr/lib/python2.5/config configure ... > > Does this solve the problem? > Thanks a lot. It solved the issue partially. I could enable the python scripting in GDB. But still the STL containers are not printing data. It worked straight in debian. The following log (Cygwin) explains more: (gdb) python print 10 10 >>>Python is enabled (gdb) print myList $1 =3D {<_List_base >> =3D { _M_impl =3D { >> =3D { >> =3D {}, }, _M_node =3D { _M_next =3D 0x681838, _M_prev =3D 0x6818c8}}}, } >>>libstdc++ printer is not used (gdb) python print myList Traceback (most recent call last): File "", line 1, in NameError: name 'myList' is not defined Error while executing Python code. >>>I will ask in archer list. (gdb) But I dont know whether it has some thing to do with Cygwin. I will ask in archer mailing list too. Mean while if anyone has some clue, please share. -Sreejith -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/