From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9877 invoked by alias); 18 Nov 2003 03:56:58 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 9864 invoked from network); 18 Nov 2003 03:56:57 -0000 Received: from unknown (HELO localhost.redhat.com) (65.49.0.121) by sources.redhat.com with SMTP; 18 Nov 2003 03:56:57 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 03E562B8F; Mon, 17 Nov 2003 22:56:31 -0500 (EST) Message-ID: <3FB9986F.2030405@gnu.org> Date: Tue, 18 Nov 2003 03:56:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Newman, Mark (N-Superior Technical Resource Inc)" Cc: gdb@sources.redhat.com Subject: Re: async operation References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-11/txt/msg00137.txt.bz2 > No response on this - so I am going to change GDB so that it will correctly handle an "interrupt" command to stop the inferior when in async mode. Well you did post on a Saturday ;-) > I tried using the "stop" command which makes it through the async filtering in top.c - however stop simply says it is not a valid command. There is logic in here for cleanly stopping when a break occurs (?) but I can't find any to allow the operator to stop the target? I think the description for "stop" explains why that does nothing: if (!dbx_commands) stop_command = add_cmd ("stop", class_obscure, not_just_help_class_command, "There is no `stop' command, but you can set a hook on `stop'.\n\ This allows you to set a list of commands to be run each time execution\n\ of the program stops.", &cmdlist); > I add'ed "interrupt" to the filtering but it does not clear the target_executing flag. You should see "fetch_inferior_event" clear that flag after it's received notification that the target really has stopped. Andrew