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 #9 from Oliver Buchtala <oliver.buchtala at googlemail dot com> 2012-08-01 16:15:39 UTC ---

> When we looked at this, we judged that it was far simpler both internally
> and for clients to apply special formatting after the fact to rather
> ordinary varobjs, than it was to try to add a special way for some
> varobjs to support non-trivial keys.
> 
> If you don't like how this looks in the CLI, simply do not use the "map"
> display hint.  The kind of output you are asking for is the default.

Ok. Then just keep it for your records that there is this discrepancy.
Maybe you could complement the documentation about that to  have it more clear.
(e.g., add a simple example).

Locally, I established two (mutual exclusive) modes to choose from.

-- 
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]