From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30369 invoked by alias); 23 Oct 2008 13:42:55 -0000 Received: (qmail 30358 invoked by uid 22791); 23 Oct 2008 13:42:54 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 23 Oct 2008 13:41:54 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 72C49108C9; Thu, 23 Oct 2008 13:41:51 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id 51E3A108B7; Thu, 23 Oct 2008 13:41:51 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Kt0Ri-0005xw-Hx; Thu, 23 Oct 2008 09:41:50 -0400 Date: Thu, 23 Oct 2008 13:42:00 -0000 From: Daniel Jacobowitz To: Tom Tromey Cc: Rob Quill , gdb-patches@sourceware.org Subject: Convenience functions (was: Re: New scope checking patch) Message-ID: <20081023134150.GA21234@caradoc.them.org> Mail-Followup-To: Tom Tromey , Rob Quill , gdb-patches@sourceware.org References: <8f2776cb0801301557t2e265b62u56d6df7cbcec1c84@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2008-05-11) 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: 2008-10/txt/msg00571.txt.bz2 [Preachy interlude: splitting up patches good! posting unrelated patches at the bottom of threads bad! Until Tom mentioned it on IRC this week I'd completely forgotten this patch had been posted.] On Tue, Jul 29, 2008 at 09:33:30PM -0600, Tom Tromey wrote: > >>>>> "Rob" == Rob Quill writes: > > Rob> Where can I find out about internal functions? > > I've appended the patch. It adds a new sort of value, which is an > internal function. These are just like ordinary functions in an > expression but they run inside gdb -- not the inferior. The user sees > them as convenience variables of "internal function" type. I looked through this patch, since I have another use for it too. It looks fine to me, except that of course it is missing documentation and test cases. For test cases we'd need a function to test with; perhaps Rob's? -- Daniel Jacobowitz CodeSourcery