delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/20/12:16:17

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 <sreejithsmadhavan AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <jason AT tishler DOT net>:
> 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<int, std::allocator<int> >> =3D {
    _M_impl =3D {<allocator<std::_List_node<int> >> =3D {<new_allocator<std=
::_List_n
ode<int> >> =3D {<No data fields>}, <No data fields>}, _M_node =3D {
        _M_next =3D 0x681838, _M_prev =3D 0x6818c8}}}, <No data fields>}
                         >>>libstdc++ printer is not used
(gdb) python print myList
Traceback (most recent call last):
  File "<string>", line 1, in <module>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019