This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/14380] Pretty-Printing maps only takes values,interpreted alternating as key and value
- From: "oliver.buchtala at googlemail dot com"<sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 31 Jul 2012 20:18:12 +0000
- Subject: [Bug python/14380] Pretty-Printing maps only takes values,interpreted alternating as key and value
- Auto-submitted: auto-generated
- References: <bug-14380-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14380
--- Comment #7 from Oliver Buchtala <oliver.buchtala at googlemail dot com> 2012-07-31 20:18:12 UTC ---
(In reply to comment #6)
> If there is a bug, I think it is in nemiver.
it is not only nemiver. Eclipse CDT and Kdevelop4 behave the same.
It seems that all those graphical debuggers expect gdb to provide maps
as a list (iterable) of key-value tuples. Actually, this is quite reasonable,
too.
Example [("key1", val1), ("key2", val2)]
On the other hand, gdb print on pretty printed maps expects lists (iterables)
such as:
[("", "key1"), ("", val1), ("", "key2"), ("", val2)]
which is definitive less intuitive...
--
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.