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: Thu, 9 Jun 2016 16:30:16 +0200 Message-ID: <57597D78.1050508@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> 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 1465482689 19474 80.91.229.3 (9 Jun 2016 14:31:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jun 2016 14:31:29 +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 Thu Jun 09 16:31:15 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 1bB0zL-0007gi-9R for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Jun 2016 16:31:15 +0200 Original-Received: from localhost ([::1]:34905 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB0zK-0003PA-7Q for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Jun 2016 10:31:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB0zD-0003Oz-LA for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2016 10:31:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bB0z8-0005yr-JT for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2016 10:31:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB0z8-0005yl-Gc for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2016 10:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bB0z8-0004gc-DB for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2016 10:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Guilhem Bichot Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Jun 2016 14:31:02 +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.146548263017976 (code B ref 23720); Thu, 09 Jun 2016 14:31:02 +0000 Original-Received: (at 23720) by debbugs.gnu.org; 9 Jun 2016 14:30:30 +0000 Original-Received: from localhost ([127.0.0.1]:34768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bB0yb-0004fs-JV for submit@debbugs.gnu.org; Thu, 09 Jun 2016 10:30:29 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:24482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bB0yZ-0004fd-3w for 23720@debbugs.gnu.org; Thu, 09 Jun 2016 10:30:27 -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 u59EUJti010394 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 9 Jun 2016 14:30:20 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u59EUJmV030931 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 9 Jun 2016 14:30:19 GMT Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u59EUIFB027698; Thu, 9 Jun 2016 14:30:18 GMT Original-Received: from [10.175.202.2] (/10.175.202.2) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 09 Jun 2016 07:30:17 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 In-Reply-To: <834m92qwmn.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:119335 Archived-At: Eli Zaretskii a écrit le 09/06/2016 16:12 : >> Cc: 23720@debbugs.gnu.org >> From: Guilhem Bichot >> Date: Thu, 9 Jun 2016 15:46:50 +0200 >> >>> Like I said, I believe this is because your program is running. >> >> It is not running. I can repeat the problem when the display is: >> Breakpoint 1, JOIN::exec (this=0x7fff70008770) at >> /home/mysql_src/git/cte/sql/sql_executor.cc:113 >> 113 { >> (gdb) >> >> which very much suggests the program is currently stopped (thus, not >> running). At that point, I can open another file, and put the cursor on >> a line of that file, and: >> - C-x C-a C-b does set the breakpoint (another hint that the program >> isn't stopped). >> - C-x SPC and clicking on the fringe, don't. In emacs23 they do. >> >> In other words, gdb-mi sees manually-opened-files as "not my business I >> won't offer my shortcuts there", while gud-gdb sees it differently. The >> latter is more convenient. >> >> It is not possible to know in advance all the breakpoints one will need >> and set them all before "run"... > > Ah, okay, I've misunderstood you, sorry. Yes, this is how stuff works > with gdb-mi. Ok. So, apparently, gdb-mi has a set of "source files it has visited" and treats other source files differently. >> ok, now we agree there's a STOP button in emacs24. >> >> (gdb) help interrupt >> Interrupt the execution of the debugged program. >> >> So, shouldn't this STOP button interrupt my debugged, running program >> (mysql)? >> 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. Thanks for your help!