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

2017-03-01 Thread manuelrciosici at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59075

--- Comment #9 from manuelrciosici at gmail dot com ---
Just to be sure this ticket doesn't get considered out of date, I want to
confirm that this is still an issue on OS X 10.12.3 using GCC 6.3 (compiled
from Homebrew) and GDB 7.12.1 (compiled from Homebrew). Alexander Timin's
suggestion still fixes issues for some collections like vector, but not for
others like unordered sets or other structures like strings.

(In reply to Jonathan Wakely from comment #8)
> Odd, on GNU/Linux I get:
> 
> type = class std::vector > :
> protected std::_Vector_base > {
> 
> 
> i.e. it has std:: qualification, and doesn't have the [with _Tp = ...] stuff
> which G++ outputs in diagnostics, but doesn't belong in the debug info if I
> understand correctly.
> 
> Iain, I don't know how to read the DWARF in the attachments, do you? And do
> you know anything about why the DWARF info is different in this way?

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

2016-04-12 Thread manuelrciosici at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59075

manuelrciosici at gmail dot com changed:

   What|Removed |Added

 CC||manuelrciosici at gmail dot com

--- Comment #7 from manuelrciosici at gmail dot com ---
I can confirm having the same issue on OS X 10.11.4 with GDB 7.8 (from CLion)
and with GDB 7.11 (compiled from Homebrew). I am using GCC 5.3.0 also compiled
from Homebrew. Alexander's code suggestion fixed the problem for me.

When I call 'ptype' on a vector of unsigned long I get the following:

type = class vector > [with _Tp =
unsigned long, _Alloc = allocator] 
: protected _Vector_base<_Tp, std::_Alloc>