This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Python enabled GDB (Archer) -Help


2009/5/19 Jason Tishler <jason@tishler.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:
>
> ? ?$ LDFLAGS=-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 = {<_List_base<int, std::allocator<int> >> = {
    _M_impl = {<allocator<std::_List_node<int> >> = {<new_allocator<std::_List_n
ode<int> >> = {<No data fields>}, <No data fields>}, _M_node = {
        _M_next = 0x681838, _M_prev = 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]