From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10666 invoked by alias); 8 Mar 2008 23:09:15 -0000 Received: (qmail 10657 invoked by uid 22791); 8 Mar 2008 23:09:14 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 08 Mar 2008 23:08:46 +0000 Received: from kahikatea.snap.net.nz (252.31.255.123.static.snap.net.nz [123.255.31.252]) by viper.snap.net.nz (Postfix) with ESMTP id 9AC2E3D9CED; Sun, 9 Mar 2008 12:08:39 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 987738FC6D; Sun, 9 Mar 2008 12:08:32 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18387.7279.827881.339251@kahikatea.snap.net.nz> Date: Sat, 08 Mar 2008 23:09:00 -0000 To: Daniel Jacobowitz Cc: Vladimir Prus , gdb-patches@sources.redhat.com Subject: Re: [RFA] Async mode fixes. In-Reply-To: <20080308205343.GA27235@caradoc.them.org> References: <200803051027.29575.vladimir@codesourcery.com> <18385.48967.964309.898509@kahikatea.snap.net.nz> <200803081158.40723.vladimir@codesourcery.com> <18386.63679.965070.279756@kahikatea.snap.net.nz> <20080308205343.GA27235@caradoc.them.org> X-Mailer: VM 7.19 under Emacs 22.1.91.2 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-03/txt/msg00074.txt.bz2 > > My changes aren't just for Linux, but an exec target. I mean native > > debugging (I think) with just one implementation - linux. It sounds like > > I'm inflating what I've done but other native targets can presumably be > > adapted to make use of the changes in inf-ptrace.c, exec.c etc. > > I think you mean "child" target? target exec just reads an exec file > on disk. Well, my changes are in exec.c to exec_ops methods, not to target methods in inf-child.c. Then ISTR these get inherited by target methods in inf-ptrace.c Are you saying that these changes should really be in inf-child.c or just that I've misunderstood the concept of an exec target? > > If all targets could run asynchronously, then it seems that that mode should > > be specified at startup: > > > > gdb --async myprog > > Can it just be the default, once we get it working? If I understand > correctly, the async-ness of the target should not affect the CLI at > all. It lets you use "continue&" in addition to "continue", but > existing commands should keep working as before. > > Async mode seems inherently superior. You're probably right. I just don't really have the bigger picture to be able to say that. -- Nick http://www.inet.net.nz/~nickrob