This is the mail archive of the archer@sourceware.org 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]

Re: Archer in Cygwin help


2009/6/1 Tom Tromey <tromey@redhat.com>:
>>>>>> "Sreejith" == Sreejith ?<sreejithsmadhavan@gmail.com> writes:
>
> Sreejith> (gdb) python gdb.libstdcxx.v6.printers.register_libstdcxx_printers(gdb.get_current_objfile())
> Sreejith> Traceback (most recent call last):
> Sreejith> ? File "<string>", line 1, in <module>
> Sreejith> AttributeError: 'module' object has no attribute 'get_current_objfile'
>
> It is just "current_objfile" now, we removed all the "get_" prefixes.
>
> Sreejith> Error while executing Python code.
> Sreejith> (gdb) python print gdb.pretty_printers
> Sreejith> [<function lookup_function at 0x7fec33ac>]
>
> Looks like something is working here.

I tried the correction you mentioned and it executed with out any
errors. But still 'python print gdb.pretty_printers' gives same error
mentioned above. Also this is the output I get when I print myList
object:

(gdb) print myList
$1 = {<_List_base<int, std::allocator<int> >> = {
    _M_impl = {<allocator<std::_List_node<int> >> =
{<new_allocator<std::_List_node<int> >> = {<No data fields>}, <No data
fields>}, _M_node = {
        _M_next = 0x682130, _M_prev = 0x6821c0}}}, <No data fields>}
(gdb)

-Sreejith


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