This is the mail archive of the mailing list for the Archer 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]

Archer in Cygwin help

          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)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
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:
(gdb) l
1       #include <list>
3       using namespace std;
5       int main ()
6       {
7               list<int> myList;
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
(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?


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