This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug mi/11335] -var-evaluate-expression should return the pretty printer's to_string result
- From: "jens dot elmenthaler at verigy dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 7 Mar 2010 13:34:12 -0000
- Subject: [Bug mi/11335] -var-evaluate-expression should return the pretty printer's to_string result
- References: <20100301114459.11335.jens.elmenthaler@verigy.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jens dot elmenthaler at verigy dot com 2010-03-07 13:34 -------
Ok, I know it again. The problem was for pretty printers returning children.
For instance, I have a collection and the pretty printer has a to_string
method returning a summary (like "vector of lenght 2"). I would like to show
this summary in the value column. -var-evaluate-expression only
returns "{...}", probably since it has children. The only way of retrieving
the summary, then, is to ask -data-evaluate-expression. But this works only as
long as I'm able to provide the required expression, which I can only do as
long as the variable of interest is not a child of another dynamic variable.
So my request simply was that -var-evaluate-expression returns the result of
the to_string method if it is backed by a pretty printer, regardless of
whether it has children or not.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11335
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.