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: Thu, 09 Jun 2016 15:17:58 +0300 Message-ID: <83d1nqr1xl.fsf@gnu.org> References: <5756941E.3000700@oracle.com> <837fe0syx5.fsf@gnu.org> <5759257F.9030502@oracle.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1465474707 16053 80.91.229.3 (9 Jun 2016 12:18:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jun 2016 12:18:27 +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 Thu Jun 09 14:18: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 1bAyub-0004fS-Oi for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Jun 2016 14:18:14 +0200 Original-Received: from localhost ([::1]:34284 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAyua-0001NM-Es for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Jun 2016 08:18:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAyuU-0001IC-Fq for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2016 08:18:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAyuQ-00053w-6t for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2016 08:18:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAyuQ-00053s-3U for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2016 08:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bAyuP-0001Iw-Vz for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2016 08:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Jun 2016 12:18: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.14654746494974 (code B ref 23720); Thu, 09 Jun 2016 12:18:01 +0000 Original-Received: (at 23720) by debbugs.gnu.org; 9 Jun 2016 12:17:29 +0000 Original-Received: from localhost ([127.0.0.1]:33402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAyts-0001IA-SX for submit@debbugs.gnu.org; Thu, 09 Jun 2016 08:17:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAytr-0001Hy-Tu for 23720@debbugs.gnu.org; Thu, 09 Jun 2016 08:17:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAyti-0004tI-78 for 23720@debbugs.gnu.org; Thu, 09 Jun 2016 08:17:22 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAyti-0004tE-3X; Thu, 09 Jun 2016 08:17:18 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2827 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bAyth-0003Rj-CT; Thu, 09 Jun 2016 08:17:17 -0400 In-reply-to: <5759257F.9030502@oracle.com> (message from Guilhem Bichot on Thu, 9 Jun 2016 10:14:55 +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:119325 Archived-At: > Cc: 23720@debbugs.gnu.org > From: Guilhem Bichot > Date: Thu, 9 Jun 2016 10:14:55 +0200 > > > M-x gud-gdb RET > > > > and will have your familiar debugging environment back. > > Not quite. Even with gud-gdb, some scenarios described below (ISSUE 2) > still happen: > - with emacs25 C-x SPC doesn't set a breakpoint; with emacs23 it does. > - Same for "clicking on the fringe doesn't set breakpoint". > - the Gud menu has lost "display other windows" Like I said, I believe this is because your program is running. When I start the debugger, before the "run" command, breakpoints do work as expected. > Before digging more in the gdb-mi discussion below, let's address one > striking point, to be sure we're talking about the same software: > > >> ISSUE 1: STOPPING > >> ================= > > >> Suggestion: make the STOP button do as Signals->Break does > >> (=send SIGINT), and like it did in emacs23. > > > > There's no STOP button on the gdb-mi toolbar, I guess you mean add it? > > There is such button; after running "M-x gdb" (which says it will run > "gdb -i=mi", so I imagine it's gdb-mi), there is a green GO button; when > running the program, this button becomes a red STOP button. Attached is > a screenshot, with the mouse pointer on the button. This button invokes -exec-interrupt when you use gdb-mi, which is the equivalent of the 'interrupt' command of GDB.