From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27392 invoked by alias); 28 Jun 2008 16:58:24 -0000 Received: (qmail 27382 invoked by uid 22791); 28 Jun 2008 16:58:23 -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:58:06 +0000 Received: (qmail 11297 invoked from network); 28 Jun 2008 16:58:04 -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:58:04 -0000 From: Vladimir Prus Date: Sat, 28 Jun 2008 17:02:00 -0000 Subject: [MI non-stop 09/11] Don't care about user-defined thread if --thread is present. To: gdb-patches@sources.redhat.com X-TUID: af989b5263ad0461 X-Length: 998 X-UID: 268 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806282058.04805.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/msg00548.txt.bz2 If an MI command has --thread parameter, we don't care in any way that user selected thread is. Will commit after core non-stop is in. - Volodya * mi/mi-main.c (mi_cmd_execute): Suppress check for non-null user-selected thread if explicit thread is specified. --- gdb/mi/mi-main.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 0b5d076..7d4adc4 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -1184,7 +1184,8 @@ mi_cmd_execute (struct mi_parse *parse) if (parse->cmd->argv_func != NULL) { - if (target_can_async_p () + if (parse->thread == -1 + && target_can_async_p () && target_has_execution && (ptid_equal (user_selected_ptid, null_ptid)) && (strcmp (parse->command, "thread-info") != 0 -- 1.5.3.5