From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7540 invoked by alias); 9 Oct 2006 18:00:40 -0000 Received: (qmail 7532 invoked by uid 22791); 9 Oct 2006 18:00:39 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.palmsource.com (HELO mx2.palmsource.com) (12.7.175.14) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 09 Oct 2006 18:00:35 +0000 Received: from localhost (localhost [127.0.0.1]) by localhost.domain.tld (Postfix) with ESMTP id A37FD2706F; Mon, 9 Oct 2006 11:00:30 -0700 (PDT) Received: from mx2.palmsource.com ([127.0.0.1]) by localhost (mx2.palmsource.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07122-05-4; Mon, 9 Oct 2006 11:00:29 -0700 (PDT) Received: from ussunex01.palmsource.com (unknown [192.168.101.9]) by mx2.palmsource.com (Postfix) with ESMTP id C0DB327064; Mon, 9 Oct 2006 11:00:29 -0700 (PDT) Received: from 192.168.92.75 ([192.168.92.75]) by ussunex01.palmsource.com ([192.168.101.9]) via Exchange Front-End Server owa.palmsource.com ([10.0.20.17]) with Microsoft Exchange Server HTTP-DAV ; Mon, 9 Oct 2006 18:00:30 +0000 Received: from svmsnyderlnx by owa.palmsource.com; 09 Oct 2006 11:00:28 -0700 Subject: async implies sync, was Re: Merge of nickrob-async-20060513 to mainline? From: Michael Snyder To: Nick Roberts Cc: Daniel Jacobowitz , gdb@sources.redhat.com In-Reply-To: <17704.29662.459220.234430@kahikatea.snap.net.nz> References: <20060830023335.GA6377@nevyn.them.org> <17653.930.196634.143646@kahikatea.snap.net.nz> <20060830040113.GA8257@nevyn.them.org> <17654.994.815362.897653@kahikatea.snap.net.nz> <20060830214257.GA5397@nevyn.them.org> <17688.59135.24869.397517@kahikatea.snap.net.nz> <20060926123757.GA9879@nevyn.them.org> <17701.43098.583849.540224@kahikatea.snap.net.nz> <20061006012633.GA20001@nevyn.them.org> <17701.47901.123920.954707@kahikatea.snap.net.nz> <20061006032420.GA22658@nevyn.them.org> <17704.29662.459220.234430@kahikatea.snap.net.nz> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 09 Oct 2006 18:00:00 -0000 Message-Id: <1160416828.14535.22.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00041.txt.bz2 On Sun, 2006-10-08 at 16:43 +1300, Nick Roberts wrote: > define.exp fails with the script nextwhere. Asynchronous operation means that > it tries to do `where' before 'next' has finished. Perhaps scripts should be > forced to run synchronously. Hmm, boy, that's a good point. In fact, you know what? I think we need some sort of synchronization primatives, since the target and gdb can now run in parallel. Every time we do a step/next/continue/until, and come back to the gdb prompt before the target has stopped, we've effectively done a "fork". At an absolute minimum, I think we need a "join" or a "wait".