Archer in Cygwin help

Sreejith sreejithsmadhavan@gmail.com
Thu May 28 13:58:00 GMT 2009


2009/5/27 Tom Tromey <tromey@redhat.com>:
>>>>>> "Sreejith" == Sreejith  <sreejithsmadhavan@gmail.com> writes:
>
> Sreejith> I tried executing
> Sreejith> gdb.libstdcxx.v6.printers.register_libstdcxx_printers(gdb.get_current_objfile())
> Sreejith> after importing libstdcxx.v6.printers as discussed in the post. But
> Sreejith> doesn't work as well.
>
> I think that ought to work.
>
> After doing that try:
>
>    python print gdb.pretty_printers

That gives the following output:

$ ./gdb.exe ../../src/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) python import gdb.libstdcxx.v6.printers
(gdb) gdb.libstdcxx.v6.printers.register_libstdcxx_printers(gdb.get_current_objfile())
Undefined command: "gdb".  Try "help".
(gdb) python gdb.libstdcxx.v6.printers.register_libstdcxx_printers(gdb.get_current_objfile())
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'get_current_objfile'
Error while executing Python code.
(gdb) python print gdb.pretty_printers
[<function lookup_function at 0x7fec33ac>]
(gdb)

Is this the expected output?

Thanks,
Sreejith



More information about the Archer mailing list