From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 77778 invoked by alias); 11 Jul 2017 08:09:08 -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 72237 invoked by uid 89); 11 Jul 2017 08:06:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=pty, Vrany, vrany, new-ui X-HELO: relay.fit.cvut.cz Received: from relay.fit.cvut.cz (HELO relay.fit.cvut.cz) (147.32.232.237) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Jul 2017 08:06:13 +0000 Received: from imap.fit.cvut.cz (imap.fit.cvut.cz [IPv6:2001:718:2:2901:0:0:0:238] (may be forged)) by relay.fit.cvut.cz (8.15.2/8.15.2) with ESMTPS id v6B862RG024670 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Tue, 11 Jul 2017 10:06:03 +0200 (CEST) (envelope-from jan.vrany@fit.cvut.cz) Received: from sao (ip-62-24-85-77.net.upcbroadband.cz [62.24.85.77]) (authenticated bits=0 as user vranyj1) by imap.fit.cvut.cz (8.15.2/8.15.2) with ESMTPSA id v6B85uCf067626 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 11 Jul 2017 10:06:02 +0200 (CEST) (envelope-from jan.vrany@fit.cvut.cz) Message-ID: <1499760351.3437.5.camel@fit.cvut.cz> Subject: Re: MI breakpoint events not emitted when breakpoint is modified using CLI From: Jan Vrany To: gdb@sourceware.org Date: Tue, 11 Jul 2017 08:09:00 -0000 In-Reply-To: <1499756660.3437.3.camel@fit.cvut.cz> References: <1499756660.3437.3.camel@fit.cvut.cz> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-FIT-MailScanner-ID: v6B862RG024670 X-FIT-MailScanner: Found to be clean X-FIT-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=1.01, required 7, MISSING_FROM 1.00, RP_MATCHES_RCVD 0.01) X-FIT-MailScanner-SpamScore: s X-FIT-MailScanner-From: jan.vrany@fit.cvut.cz X-FIT-MailScanner-Watermark: 1500365164.75268@XxHg/efhOWk5kcgHo2Rj+Q X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00018.txt.bz2 Hi again, I'm sorry, I just tried in a slightly different setup and I do see breakpoint events. So the problem is elsewhere likely in my MI handling code. I'm very sorry for the noise. Jan On Tue, 2017-07-11 at 09:04 +0200, Jan Vrany wrote: > Hi,  > > I just noticed that -breakpoint-created / -breakpoint-modified /  > -breakpoint-deleted events are not emitted if I create them using CLI > interpreter.  > > Following Pedro's suggestion [1], I start GDB with CLI interpreter > and then spawn a (secondary) MI interpreter using "new-ui mi pty>" cli command. Then if I create a breakpoint using "break > some_func" using CLI interpreter (running on "primary" TTY), I get > no events on MI tty. If enter CLI command on MI TTY, I do get them.  > > Is it a bug or a feature? If feature, what's the rationale behind?  > > Thanks!  > > Jan > > > [1]: https://sourceware.org/ml/gdb/2017-01/msg00039.html