From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2303 invoked by alias); 11 Jun 2009 22:40:11 -0000 Received: (qmail 2295 invoked by uid 22791); 11 Jun 2009 22:40:10 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Jun 2009 22:40:03 +0000 Received: from eliz by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MEswD-0002x8-5c; Thu, 11 Jun 2009 18:40:01 -0400 From: Eli Zaretskii To: tromey@redhat.com CC: gdb-patches@sourceware.org In-reply-to: (message from Tom Tromey on Thu, 11 Jun 2009 14:49:16 -0600) Subject: Re: Patch: add gdb.parse_and_eval Reply-to: Eli Zaretskii References: Message-Id: Date: Thu, 11 Jun 2009 22:40:00 -0000 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00329.txt.bz2 > From: Tom Tromey > Reply-To: tromey@redhat.com > Date: Thu, 11 Jun 2009 14:49:16 -0600 > > +@findex gdb.parse_and_eval > +@defun parse_and_eval expression > +Parse @var{expression} as an expression in the current language, > +evaluate it, and return the result as a @code{gdb.Value}. > +@var{expression} must be a string. > +@end defun Thanks. This is okay, but given the recent discussions which indicated that this feature is necessary for a broad class of scripts, I would expect a bit more text in the manual about it, describing when and how this would be useful. The user manual is not just a reference list of existing commands and options. It contains, in addition, the glue: explanations of how these features fit together to support important use-cases one meets while debugging programs. Without this glue, the manual would be a much less useful document. TIA