[Bug libstdc++/59075] python pretty printer does not work at OS X

2013-11-11 Thread altimin at altimin dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59075

--- Comment #3 from Alexander Timin altimin at altimin dot ru ---
Created attachment 31195
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31195action=edit
compiled dwarf file


[Bug libstdc++/59075] python pretty printer does not work at OS X

2013-11-11 Thread altimin at altimin dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59075

--- Comment #5 from Alexander Timin altimin at altimin dot ru ---
Created attachment 31197
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31197action=edit
source code


[Bug libstdc++/59075] python pretty printer does not work at OS X

2013-11-11 Thread altimin at altimin dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59075

--- Comment #4 from Alexander Timin altimin at altimin dot ru ---
Created attachment 31196
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31196action=edit
compiled executable


[Bug libstdc++/59075] python pretty printer does not work at OS X

2013-11-11 Thread altimin at altimin dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59075

--- Comment #6 from Alexander Timin altimin at altimin dot ru ---
(In reply to Tom Tromey from comment #2)

It has been compiled only with -g option.

What do you mean by see gdb session? I don't understand. What should I do?


[Bug libstdc++/59075] New: python pretty printer does not work at OS X

2013-11-10 Thread altimin at altimin dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59075

Bug ID: 59075
   Summary: python pretty printer does not work at OS X
   Product: gcc
   Version: 4.6.4
Status: UNCONFIRMED
  Severity: trivial
  Priority: P3
 Component: libstdc++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: altimin at altimin dot ru

Python pretty printing does not work at Mac OS X 10.9 (g++ 4.6.4, gdb 7.6)
because result of get_basic_type() is just 'vector' instead of 'std::vector'.

Adding following two lines to add_version method of Printer class worked for
me.

if base == 'std::':
self.add(name, function)