Bug 10284 - var-info-path-expression for sets/maps broken with python pretty printing
Summary: var-info-path-expression for sets/maps broken with python pretty printing
Status: RESOLVED DUPLICATE of bug 10252
Alias: None
Product: gdb
Classification: Unclassified
Component: mi (show other bugs)
Version: archer
: P2 normal
Target Milestone: 6.8
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-15 14:52 UTC by Terry Parker
Modified: 2009-06-15 19:26 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Terry Parker 2009-06-15 14:52:23 UTC
The MI command "var-info-path-expression varN.[N]" for a set:<int> returns 
an empty string "" where it should return "int".

This is likely related to but 10252, which concerns var-info-path-expression 
for vectors.

I looked at the cplus_path_expr_of_child() function in varobj.c, and its "struct 
varobj *child" argument actually contains the correct type, but the function 
delegates its work to cplus_describe_child(), which is looking at the set/map 
object as a C++ class rather than a collection.

For indices > 2, gdb gets an out of bounds exception for the index and exits.
Comment 1 Tom Tromey 2009-06-15 19:26:32 UTC
This is really the same as 10252.
The issue is that we need to give the printers a way to
supply the path expression to varobj.

*** This bug has been marked as a duplicate of 10252 ***