Mail Archives: cygwin/2009/05/20/12:16:17
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 -