From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Guilhem Bichot 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 10:41:27 +0200 Message-ID: <575A7D37.20108@oracle.com> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1465548147 28562 80.91.229.3 (10 Jun 2016 08:42:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jun 2016 08:42:27 +0000 (UTC) Cc: 23720@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 10 10:42:14 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 1bBI17-00034d-0u for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Jun 2016 10:42:13 +0200 Original-Received: from localhost ([::1]:39062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBI15-0003SN-Oc for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Jun 2016 04:42:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBI10-0003SF-9o for bug-gnu-emacs@gnu.org; Fri, 10 Jun 2016 04:42:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBI0w-0005by-3d for bug-gnu-emacs@gnu.org; Fri, 10 Jun 2016 04:42:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBI0w-0005bo-08 for bug-gnu-emacs@gnu.org; Fri, 10 Jun 2016 04:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bBI0v-0005Lr-LC for bug-gnu-emacs@gnu.org; Fri, 10 Jun 2016 04:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Guilhem Bichot Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Jun 2016 08:42: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.146554810320546 (code B ref 23720); Fri, 10 Jun 2016 08:42:01 +0000 Original-Received: (at 23720) by debbugs.gnu.org; 10 Jun 2016 08:41:43 +0000 Original-Received: from localhost ([127.0.0.1]:35115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bBI0d-0005LK-Ar for submit@debbugs.gnu.org; Fri, 10 Jun 2016 04:41:43 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:40155) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bBI0b-0005L6-FR for 23720@debbugs.gnu.org; Fri, 10 Jun 2016 04:41:42 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u5A8fYbx013236 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 10 Jun 2016 08:41:34 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u5A8fXOO003503 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 10 Jun 2016 08:41:34 GMT Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id u5A8fXJ6026090; Fri, 10 Jun 2016 08:41:33 GMT Original-Received: from [10.175.182.105] (/10.175.182.105) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 10 Jun 2016 01:41:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 In-Reply-To: <831t46qviz.fsf@gnu.org> X-Source-IP: userv0021.oracle.com [156.151.31.71] 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:119366 Archived-At: Hello, Eli Zaretskii a écrit le 09/06/2016 16:36 : >> Cc: 23720@debbugs.gnu.org >> From: Guilhem Bichot >> Date: Thu, 9 Jun 2016 16:30:16 +0200 >> >>>> Pressing this STOP button in emacs23 does interrupt it. >>>> It doesn't anymore in emacs24. >>>> Is it considered normal? >>> >>> I don't think so, but I don't have any more wisdom to offer about >>> this. AFAIU, -exec-interrupt should have interrupted your program, >>> unless it masks signals. >> >> I see. When I find the time, I'll try diff-ing the code of gud-gdb and >> of gdb-mi to find what magic the gud-gdb STOP button has, which makes it >> have "a stronger interruption effect". >> If I find anything, I'll report it here. > > I think the answer to that is clear from this: > > (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.