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 mi/10284] New: var-info-path-expression for sets/maps broken with python pretty printing


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.

-- 
           Summary: var-info-path-expression for sets/maps broken with
                    python pretty printing
           Product: gdb
           Version: archer
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: mi
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: tparker at google dot com
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10284

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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