Bug 461097 - Error when displaying an STL map using string as keys
Summary: Error when displaying an STL map using string as keys
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: Next   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-27 20:30 EST by Simon Marchi CLA
Modified: 2020-09-04 15:17 EDT (History)
3 users (show)

See Also:


Attachments
Source to reproduce (410 bytes, text/x-c)
2015-02-27 20:30 EST, Simon Marchi CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Marchi CLA 2015-02-27 20:30:17 EST
Created attachment 251181 [details]
Source to reproduce

An image is worth 9000 words: http://nova.polymtl.ca/~simark/ss/cdt-map.png
Comment 1 Simon Marchi CLA 2015-02-28 12:24:53 EST
According to the gdb doc, the children of MI variables with displayhint "map" are alternating keys and values. CDT parses the displayhint, but doesn't seem to make any significant use of it.

Reference: https://sourceware.org/gdb/onlinedocs/gdb/Pretty-Printing-API.html#Pretty-Printing-API
Comment 2 Simon Marchi CLA 2015-03-02 16:46:38 EST
Ok, to make it clear, this bug will be about the error in red in the screenshot.

I created another bug to improve the display of maps:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=461241