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/14380] Pretty-Printing maps only takes values,interpreted alternating as key and value


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.


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