This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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]

[Bug python/19227] New: Pretty-printer fails on std::map if compiled with C++11


https://sourceware.org/bugzilla/show_bug.cgi?id=19227

            Bug ID: 19227
           Summary: Pretty-printer fails on std::map if compiled with
                    C++11
           Product: gdb
           Version: 7.8
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
          Assignee: unassigned at sourceware dot org
          Reporter: andrew_terekhov at yahoo dot com
  Target Milestone: ---

I found a problem with gdb 7.8.2-38 if C++ code is compiled with
-std=c++11. When I try to print contents of non-empty std::map I get the
following error:

(gdb) p    m1
$2 = std::__debug::map with 1 elementsPython Exception <class 'gdb.error'>
There is no member or method named _M_value_field.:

If I recompile without -std=c++11 then pretty-printers work correctly.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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