From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53840 invoked by alias); 10 Jun 2019 23:23:20 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 53832 invoked by uid 89); 10 Jun 2019 23:23:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=H*f:sk:70fdd91, H*i:sk:70fdd91, HX-Received:aed, H*c:alternative X-HELO: pb-smtp2.pobox.com Received: from pb-smtp2.pobox.com (HELO pb-smtp2.pobox.com) (64.147.108.71) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 10 Jun 2019 23:23:19 +0000 Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 48EBE1641EF for ; Mon, 10 Jun 2019 19:23:17 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=sasl; bh=P/ENF5bNfVrl2KmHr5K7yPMbAjA=; b=EbQDve 3hieQxPgubS4VCO8qngsiEJrNkVRXcD8WWTvWwKxU4zO44H348ljDwr+Eq0x3niv 4MgJDgBwHH/sT4jCBHjCHYEW1rjWJLzpmH0tkUQ45WnrVaWw3aPQ5bdAIIjIhorT W4clBlGAjyP4uFsMJhrR3UN/p4xFkCGvcrMAU= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 408861641EE for ; Mon, 10 Jun 2019 19:23:17 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kichwacoders.com; h=mime-version:references:in-reply-to:from:date:message-id:subject:to:cc:content-type; s=mesmtp; bh=IkFR9uX2WFRy6zrkf5dSdg6OlOch8sAsFq3hB7czSas=; b=MXhhC9xRDGQy9oT8jALsVgP/FyTgjUcn38Kdxe4OuKQO8ouHO7/ozeJsEXZuWcflFODHMa1sXI19U0NGa5AmbWfOtbCm4pvC/20WtPYbgIZtsn2ERToWyKR2DsAynx8lGU2TAh9xy9mf5dXZ/YagGM/ytKw0u3KPCkOkyWSLWw4= Received: from mail-qt1-f177.google.com (unknown [209.85.160.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id B22B01641EC for ; Mon, 10 Jun 2019 19:23:16 -0400 (EDT) Received: by mail-qt1-f177.google.com with SMTP id m29so12413583qtu.1 for ; Mon, 10 Jun 2019 16:23:16 -0700 (PDT) MIME-Version: 1.0 References: <70fdd9107d9bb3cee0a1a342aedc05bf3c8e9bae.camel@fit.cvut.cz> In-Reply-To: <70fdd9107d9bb3cee0a1a342aedc05bf3c8e9bae.camel@fit.cvut.cz> From: Jonah Graham Date: Mon, 10 Jun 2019 23:23:00 -0000 Message-ID: Subject: Re: MI3 and async notifications To: Jan Vrany Cc: "gdb@sourceware.org" X-Pobox-Relay-ID: B9C4B1AA-8BD6-11E9-AEE0-72EEE64BB12D-18936988!pb-smtp2.pobox.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-06/txt/msg00013.txt.bz2 On Mon, 10 Jun 2019 at 17:19, Jan Vrany wrote: > Therefore I'd like to propose a change for MI3 to always send > notifications. > If such a change would make things complicated for other frontends > (Eclipse CDT / Emacs come to mind), I propose new > > -gdb-set mi-always-notify 1 > -gdb-set mi-always-notify 0 > Thank you for considering the other front end consumers of MI. I am one of the current maintainers of CDT so I will share my 2cents. Eclipse CDT would certainly require such a flag, but only if MI3 was a replacement for MI2. If CDT can continue to use gdb in mi2 mode (CDT launches gdb with --interpreter mi2 [1]) then I don't think you need to carry on the extra logic in MI3. I haven't followed the discussions on MI3 closely. I assume from the proposal that the -break-insert still gets the done message with the breakpoint number in it? And does the async message come back after the the ^done? If it does not come after the done CDT will have to hold processing the async message until after it finds out if the =breakpoint-created was for the MI or CLI inserted breakpoint (consider the race condition that a user / script inserts a breakpoint from the CLI at the same time as from the MI). I hope that helps from CDT perspective. Jonah [1] https://github.com/eclipse-cdt/cdt/blob/7741bd98f7b08a281c4b7f60e60c5839f315f760/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBBackend.java#L188