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/11335] -var-evaluate-expression should return the pretty printer's to_string result


------- 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.


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