From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26925 invoked by alias); 28 Jun 2008 16:57:37 -0000 Received: (qmail 26916 invoked by uid 22791); 28 Jun 2008 16:57:36 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 28 Jun 2008 16:57:19 +0000 Received: (qmail 11245 invoked from network); 28 Jun 2008 16:57:17 -0000 Received: from unknown (HELO 172.16.unknown.plus.ru) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 28 Jun 2008 16:57:17 -0000 From: Vladimir Prus Date: Sat, 28 Jun 2008 17:00:00 -0000 Subject: [MI non-stop 08/11] Enable all MI commands while inferiour is running To: gdb-patches@sources.redhat.com X-TUID: 7b006bccab854da8 X-Length: 1393 X-UID: 267 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806282057.17912.vladimir@codesourcery.com> 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-06/txt/msg00547.txt.bz2 The previous patch enables all CLI commands when inferiour is running. This one does same for MI. Will commit after core non-stop patches are in. - Volodya * mi/mi-main.c (mi_cmd_execute): Don't check if inferiour is executing. --- gdb/mi/mi-main.c | 17 ----------------- 1 files changed, 0 insertions(+), 17 deletions(-) diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 87c3257..0b5d076 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -1202,23 +1202,6 @@ mi_cmd_execute (struct mi_parse *parse) error_stream (stb); } - if ((!non_stop && any_running ()) - || (non_stop && is_running (inferior_ptid))) - { - if (strcmp (parse->command, "exec-interrupt")) - { - struct ui_file *stb; - stb = mem_fileopen (); - - fputs_unfiltered ("Cannot execute command ", stb); - fputstr_unfiltered (parse->command, '"', stb); - fputs_unfiltered (" while target running", stb); - - make_cleanup_ui_file_delete (stb); - error_stream (stb); - } - } - current_token = xstrdup (parse->token); cleanup = make_cleanup (free_current_contents, ¤t_token); parse->cmd->argv_func (parse->command, parse->argv, parse->argc); -- 1.5.3.5