This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug mi/10284] New: var-info-path-expression for sets/maps broken with python pretty printing
- From: "tparker at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 15 Jun 2009 14:52:24 -0000
- Subject: [Bug mi/10284] New: var-info-path-expression for sets/maps broken with python pretty printing
- Reply-to: sourceware-bugzilla at sourceware dot org
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.