This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/14386] New: std::bitset not iterable
- From: "andreasheimberger at gmx dot at" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 23 Jul 2012 08:01:51 +0000
- Subject: [Bug python/14386] New: std::bitset not iterable
- Auto-submitted: auto-generated
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.