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/14386] New: std::bitset not iterable


http://sourceware.org/bugzilla/show_bug.cgi?id=14386

             Bug #: 14386
           Summary: std::bitset not iterable
           Product: gdb
           Version: 7.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
        AssignedTo: unassigned@sourceware.org
        ReportedBy: andreasheimberger@gmx.at
    Classification: Unclassified


What is the expected result for an std::bitset using -enable-pretty-printing in
gdb/mi. Following happens to me:

(gdb) 
-var-create - * bits
^error,msg="Returned value is not iterable"

(gdb) 
whatis bits
&"whatis bits\n"
~"type = std::bitset<8ul>\n"

Normal print or -data-evaluate-expression works as expected
print bits
&"print bits\n"
~"$2 = std::bitset = {[0] = 1"
~", [2] = 1"
~", [4] = 1"
~", [6] = 1"


What I expected was a result like the print of a std::map with the given index
to the bit that is set.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]