From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20577 invoked by alias); 5 Feb 2014 00:14:20 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 20546 invoked by uid 48); 5 Feb 2014 00:14:19 -0000 From: "krf at gmx dot de" To: gdb-prs@sourceware.org Subject: [Bug mi/11335] -var-evaluate-expression should return the pretty printer's to_string result Date: Wed, 05 Feb 2014 00:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: mi X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: krf at gmx dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 7.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q1/txt/msg00140.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=11335 Kevin Funk changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |krf at gmx dot de --- Comment #5 from Kevin Funk --- Hey Vladimir. I'm curious if this issue has been solved in one or the other way up to now. I was wondering if we could resolve those '{...}' for non-simple types in KDevelop's GDB support, and stumbled upon this bug entry. I think it's valid request to get some 'short summary' of non-simple types. Containers are the best example, it'd be good to know how many items they contain, without requesting the individual child items. Given the documentation about the pretty printer's to_string() method: "When printing from the CLI, if the to_string method exists, then gdb will prepend its result to the values returned by children. Exactly how this formatting is done is dependent on the display hint, and may change as more hints are added. Also, depending on the print settings (see Print Settings), the CLI may print just the result of to_string in a stack trace, omitting the result of children." => Here, to_string() is used unconditionally, children() is optional. Can't we transfer that kind of behavior to -var-evaluate-expression and friends as well? -- You are receiving this mail because: You are on the CC list for the bug.