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#22772: 25.0.91; Can't run gud-gdb on two instances of the same program Date: Mon, 22 Feb 2016 19:55:40 +0200 Message-ID: <8360xgljdv.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1456163793 22945 80.91.229.3 (22 Feb 2016 17:56:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2016 17:56:33 +0000 (UTC) Cc: 22772@debbugs.gnu.org To: Michael Welsh Duggan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 22 18:56:23 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 1aXuiT-0007H5-61 for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Feb 2016 18:56:13 +0100 Original-Received: from localhost ([::1]:50928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXuiP-0002Ps-EW for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Feb 2016 12:56:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXuiL-0002Pa-QW for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 12:56:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXuiH-0004zP-TF for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 12:56:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXuiH-0004z4-Py for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 12:56:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aXuiH-0000K7-L6 for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 12:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Feb 2016 17:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22772 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22772-submit@debbugs.gnu.org id=B22772.14561637591234 (code B ref 22772); Mon, 22 Feb 2016 17:56:01 +0000 Original-Received: (at 22772) by debbugs.gnu.org; 22 Feb 2016 17:55:59 +0000 Original-Received: from localhost ([127.0.0.1]:38367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXuiE-0000Jq-Rs for submit@debbugs.gnu.org; Mon, 22 Feb 2016 12:55:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46468) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXuiD-0000Ja-Kz for 22772@debbugs.gnu.org; Mon, 22 Feb 2016 12:55:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXui5-0004rY-QR for 22772@debbugs.gnu.org; Mon, 22 Feb 2016 12:55:52 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXui5-0004rL-JY; Mon, 22 Feb 2016 12:55:49 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1402 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aXui4-0007ii-OF; Mon, 22 Feb 2016 12:55:49 -0500 In-reply-to: (message from Michael Welsh Duggan on Mon, 22 Feb 2016 12:37:20 -0500) 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113473 Archived-At: > From: Michael Welsh Duggan > Date: Mon, 22 Feb 2016 12:37:20 -0500 > > I use M-x gud-gdb, since the MI client doesn't support multipl > debugger instances (which is sad). What happens if you try debugging several programs at the same time using the MI client? I just tried that in Emacs 25.0.91, and it seems to work for me; in particular, I see 2 instances of GDB running under Emacs. So I wonder what doesn't work for you. Also, latest versions of GDB support debugging multiple programs inside the same GDB session; not sure if this helps you. > This fails, though, since I get the error: > > gud-common-init: This program is already being debugged > > These programs are installed in different directories, but have the same > filename. I can work around this problem by renaming one of the > executables, but I think this is a bug, since the path to the executable > could be used to determine uniqueness instead of the filename itself. I think we should avoid developing gud-gdb if gdb-mi.el provides a reasonable solution for the same use case. So let's first try to figure out of "M-x gdb" could work for you, and try fixing it if it doesn't. Thanks.