From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7076 invoked by alias); 20 Mar 2008 12:22:15 -0000 Received: (qmail 7067 invoked by uid 22791); 20 Mar 2008 12:22:15 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 20 Mar 2008 12:21:50 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JcJmF-0001ym-Jz for gdb@sources.redhat.com; Thu, 20 Mar 2008 12:21:47 +0000 Received: from 77.246.241.246 ([77.246.241.246]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Mar 2008 12:21:47 +0000 Received: from ghost by 77.246.241.246 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Mar 2008 12:21:47 +0000 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: Async function calls Date: Thu, 20 Mar 2008 16:23:00 -0000 Message-ID: References: <200803201044.47454.vladimir@codesourcery.com> <20080320121019.GA6677@caradoc.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.5 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00173.txt.bz2 Daniel Jacobowitz wrote: > On Thu, Mar 20, 2008 at 10:44:46AM +0300, Vladimir Prus wrote: >> Maybe, somebody have bright ideas? > > Could we pick out the inferior function calls and evaluate them first, > with continuations? Except that could change order of evaluation; > we'd have to read the values of variables at the same time. Will it help? Say, we do: print foo() then to do it async way, we have to do the function call, and then 'print' should get back to action and print the value. Right now, print_command has no continuations, so we'll have to add it. And likewise, it seems that every command that can call a function will have to be converted to use continuation. - Volodya