Discussion:
[Bug gdb/16310] New: As of gcc 4.8.1, pretty printing is broken for
razeh at yahoo dot com
2013-12-10 18:50:47 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=16310

Bug ID: 16310
Summary: As of gcc 4.8.1, pretty printing is broken for
std::unordered_map
Product: gdb
Version: unknown
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: razeh at yahoo dot com

The pretty printing in printers.py for std::unordered_map depends on a
_M_before_begin method that was removed between gcc 4.8 and gcc 4.8.1 as part
of a rework for the hash map. When you try to print out an unordered_map
you'll get:
$8 = std::unordered_map with 2 elementsPython Exception <class 'gdb.error'>
cannot resolve overloaded method `_M_before_begin': no arguments supplied:
--
You are receiving this mail because:
You are on the CC list for the bug.
razeh at yahoo dot com
2013-12-10 19:01:10 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=16310

--- Comment #1 from Robert Zeh <razeh at yahoo dot com> ---
I was wrong about _M_before_being going away; it is still there.
--
You are receiving this mail because:
You are on the CC list for the bug.
razeh at yahoo dot com
2013-12-10 19:36:40 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=16310

--- Comment #2 from Robert Zeh <razeh at yahoo dot com> ---
Created attachment 7319
--> https://sourceware.org/bugzilla/attachment.cgi?id=7319&action=edit
Allows std::unordered_map to be pretty printed with gcc 4.8.1 and gdb
7.5.91.20130417-cvs-ubuntu
--
You are receiving this mail because:
You are on the CC list for the bug.
razeh at yahoo dot com
2013-12-10 19:37:18 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=16310

Robert Zeh <razeh at yahoo dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Version|unknown |7.5
Summary|As of gcc 4.8.1, pretty |With gdb 4.8.1, gdb
|printing is broken for |7.5.91.20130417-cvs-ubuntu
|std::unordered_map |pretty printing breaks for
| |std::unordered_map
--
You are receiving this mail because:
You are on the CC list for the bug.
razeh at yahoo dot com
2013-12-10 19:46:04 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=16310

Robert Zeh <razeh at yahoo dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Summary|With gdb 4.8.1, gdb |With gcc 4.8.1, gdb
|7.5.91.20130417-cvs-ubuntu |7.5.91.20130417-cvs-ubuntu
|pretty printing breaks for |pretty printing breaks for
|std::unordered_map |std::unordered_map
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-09-04 05:08:33 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=16310

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org

--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
Hi. Sorry about the long delay on this.
The libstdc++ pretty-printers are maintained in gcc, not gdb.
So the bug report has to go there.

Is this still a bug? Perhaps it has been fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...