From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23720: 25.0.94; Issues with GUD (gdb-mi) after upgrade from Emacs 23 to 24/25 Date: Fri, 10 Jun 2016 12:52:14 +0300 Message-ID: <83inxhpe0h.fsf@gnu.org> References: <5756941E.3000700@oracle.com> <837fe0syx5.fsf@gnu.org> <5759257F.9030502@oracle.com> <83d1nqr1xl.fsf@gnu.org> <5759734A.8090809@oracle.com> <834m92qwmn.fsf@gnu.org> <57597D78.1050508@oracle.com> <831t46qviz.fsf@gnu.org> <575A7D37.20108@oracle.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1465553322 12729 80.91.229.3 (10 Jun 2016 10:08:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jun 2016 10:08:42 +0000 (UTC) Cc: 23720@debbugs.gnu.org To: Guilhem Bichot Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 10 12:08:31 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bBJMb-0002te-O4 for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Jun 2016 12:08:29 +0200 Original-Received: from localhost ([::1]:39459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBJMa-0000Gq-GU for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Jun 2016 06:08:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBJ6k-0002yY-Cl for bug-gnu-emacs@gnu.org; Fri, 10 Jun 2016 05:52:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBJ6g-0005mq-75 for bug-gnu-emacs@gnu.org; Fri, 10 Jun 2016 05:52:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBJ6g-0005mm-3g for bug-gnu-emacs@gnu.org; Fri, 10 Jun 2016 05:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bBJ6f-0001r0-Ve for bug-gnu-emacs@gnu.org; Fri, 10 Jun 2016 05:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Jun 2016 09:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23720 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23720-submit@debbugs.gnu.org id=B23720.14655523077104 (code B ref 23720); Fri, 10 Jun 2016 09:52:01 +0000 Original-Received: (at 23720) by debbugs.gnu.org; 10 Jun 2016 09:51:47 +0000 Original-Received: from localhost ([127.0.0.1]:35176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bBJ6R-0001qU-KP for submit@debbugs.gnu.org; Fri, 10 Jun 2016 05:51:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bBJ6P-0001qD-AN for 23720@debbugs.gnu.org; Fri, 10 Jun 2016 05:51:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBJ6H-0005k1-5j for 23720@debbugs.gnu.org; Fri, 10 Jun 2016 05:51:40 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBJ6H-0005jv-2Y; Fri, 10 Jun 2016 05:51:37 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4440 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bBJ6C-0003fZ-HF; Fri, 10 Jun 2016 05:51:33 -0400 In-reply-to: <575A7D37.20108@oracle.com> (message from Guilhem Bichot on Fri, 10 Jun 2016 10:41:27 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:119374 Archived-At: > Cc: 23720@debbugs.gnu.org > From: Guilhem Bichot > Date: Fri, 10 Jun 2016 10:41:27 +0200 > > > (defun gud-stop-subjob () > > (interactive) > > (with-current-buffer gud-comint-buffer > > (cond ((string-equal gud-target-name "emacs") > > (comint-stop-subjob)) > > ((eq gud-minor-mode 'jdb) > > (gud-call "suspend")) > > ((eq gud-minor-mode 'gdbmi) > > (gud-call (gdb-gud-context-command "-exec-interrupt"))) > > (t > > (comint-interrupt-subjob))))) > > > > As you see i works differently depending on whether gdb-mi is used or > > not. What I don't understand is why -exec-interrupt doesn't do its > > job in your case. > > It's isn't mysql-related. I create the simple a.cc: > > int main() > { > long long int x; > for (x= 1; x; x++) > ; > return 0; > } > > I compile: > g++ -g a.cc > > I open a.cc in emacs25, M-x gdb, "run"; it prints > (gdb) r > Starting program: /home/mysql_src/tmp/a.out > > the long "for" loop is running, I press the STOP button, it prints > "command: -exec-interrupt", and the program apparently doesn't stop (as > there is no change at the prompt). To be sure about "doesn't stop", I > try with this program > > #include > #include > int main() > { > long long int x; > for (x= 1; x; x++) > { > std::cout << x << std::endl; > sleep(1); > } > return 0; > } > > And, likewise, the printouts continue, undisturbed by the click on STOP. > > For what it's worth, the menu Signals->Break interrupts it and I > properly get: > > Program received signal SIGINT, Interrupt. > 0x0000000000400509 in main () at a.cc:4 > 4 for (x= 1; x; x++) > (gdb) > > I'm using Ubuntu 15.10. I suggest to ask this question on the GDB mailing list.