From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31238 invoked by alias); 5 Nov 2003 21:11:38 -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 31231 invoked from network); 5 Nov 2003 21:11:37 -0000 Received: from unknown (HELO mailgw3a.lmco.com) (192.35.35.7) by sources.redhat.com with SMTP; 5 Nov 2003 21:11:37 -0000 Received: from emss04g01.ems.lmco.com ([166.17.13.122]) by mailgw3a.lmco.com (8.11.6p2/8.11.6) with ESMTP id hA5LBbR22071 for ; Wed, 5 Nov 2003 16:11:37 -0500 (EST) Received: from CONVERSION-DAEMON.lmco.com by lmco.com (PMDF V6.1-1X6 #30760) id <0HNW00201DJCOF@lmco.com> for gdb@sources.redhat.com; Wed, 05 Nov 2003 16:11:36 -0500 (EST) Received: from EMSS04I00.us.lmco.com ([166.17.13.135]) by lmco.com (PMDF V6.1-1X6 #30760) with ESMTP id <0HNW0062ODJCNY@lmco.com> for gdb@sources.redhat.com; Wed, 05 Nov 2003 16:11:36 -0500 (EST) Received: from EMSS04M11.us.lmco.com ([144.219.10.27]) by EMSS04I00.us.lmco.com with Microsoft SMTPSVC(5.0.2195.2966); Wed, 05 Nov 2003 16:11:36 -0500 Date: Wed, 05 Nov 2003 21:11:00 -0000 From: "Newman, Mark (N-Superior Technical Resource Inc)" Subject: filtering of commands during async operation To: gdb@sources.redhat.com Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft Exchange V6.0.6487.1 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 05 Nov 2003 21:11:36.0400 (UTC) FILETIME=[6598FD00:01C3A3E1] X-SW-Source: 2003-11/txt/msg00040.txt.bz2 In top.c there is an attempt to filter what commands can be issued during async operation. That code is not filtering (at least under RH on an Intel box). The code is if (event_loop_p && target_can_async_p () && target_executing) if (!strcmp (c->name, "help") && !strcmp (c->name, "pwd") && !strcmp (c->name, "show") && !strcmp (c->name, "stop")) error ("Cannot execute this command while the target is running."); The code should be: if (event_loop_p && target_can_async_p () && target_executing) { if (!(strcmp (c->name, "help") == 0) && !(strcmp (c->name, "pwd") == 0) && !(strcmp (c->name, "show") == 0) && !(strcmp (c->name, "stop") == 0)) { error ("Cannot execute this command while the target is running."); } } Unless someone objects I am going to put in a bug report and a patch. In addition I would like to set up a more flexible way of defining which commands are legal while target_executing == 1 and in async mode. Mark Newman