public inbox for archer@sourceware.org
 help / color / mirror / Atom feed
* Archer in Cygwin help
@ 2009-05-20 17:18 Sreejith
  2009-05-20 22:04 ` Phil Muldoon
  0 siblings, 1 reply; 14+ messages in thread
From: Sreejith @ 2009-05-20 17:18 UTC (permalink / raw)
  To: archer

Hi,
          I am trying to use Eclipse-cygwin environment to debug STL.
Currently Eclipse shows the row gdb out put when inspecting STL
container objects. With support from Cygwin mailing list, I could
compile archer in Cygwin to enable python scripting in gdb. I used git
to pull the head revision. By printing a constant using 'python print'
I could confirm that python support is available in Cygwin, but
libstdc++ printers are not working as expected. The following log
explains more:

$ ./gdb.exe ../../a.exe
GNU gdb (GDB) 6.8.50.20090106-cvs
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>...
(gdb) l
1       #include <list>
2
3       using namespace std;
4
5       int main ()
6       {
7               list<int> myList;
8
9               for(int i=0; i<10; i++)
10              {
(gdb) l
11                      myList.push_back(i);
12              }
13              return 0;
14      }
(gdb) break 13
Breakpoint 1 at 0x401139: file list.cpp, line 13.
(gdb) run
Starting program: /home/sreejith/archer/a.exe
[New Thread 336.0x8e0]
[New Thread 336.0x1b8]

Breakpoint 1, main () at list.cpp:13
13              return 0;
(gdb) python print 10
10
(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>}
(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.

Any suggestions to fix this issue?

Thanks,
Sreejith

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-06-04 11:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-20 17:18 Archer in Cygwin help Sreejith
2009-05-20 22:04 ` Phil Muldoon
2009-05-21  9:44   ` Sreejith
2009-05-21 16:50     ` Phil Muldoon
2009-05-21 17:02       ` Sreejith
2009-05-21 22:40         ` Paul Pluzhnikov
2009-05-22  7:49           ` Sreejith
2009-05-22  8:26             ` Phil Muldoon
2009-05-22  8:42               ` Sreejith
2009-05-22 15:33                 ` Sreejith
2009-05-27 17:07                   ` Tom Tromey
2009-05-28 13:58                     ` Sreejith
2009-06-01 16:39                       ` Tom Tromey
2009-06-04 11:34                         ` Sreejith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).