public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug mi/10284] New: var-info-path-expression for sets/maps broken with python pretty printing
@ 2009-06-15 14:52 tparker at google dot com
2009-06-15 19:26 ` [Bug mi/10284] " tromey at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: tparker at google dot com @ 2009-06-15 14:52 UTC (permalink / raw)
To: gdb-prs
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug mi/10284] var-info-path-expression for sets/maps broken with python pretty printing
2009-06-15 14:52 [Bug mi/10284] New: var-info-path-expression for sets/maps broken with python pretty printing tparker at google dot com
@ 2009-06-15 19:26 ` tromey at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: tromey at redhat dot com @ 2009-06-15 19:26 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From tromey at redhat dot com 2009-06-15 19:26 -------
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 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-06-15 19:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-15 14:52 [Bug mi/10284] New: var-info-path-expression for sets/maps broken with python pretty printing tparker at google dot com
2009-06-15 19:26 ` [Bug mi/10284] " tromey at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).