From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan 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 13:25:33 -0500 Message-ID: References: <8360xgljdv.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456165593 20714 80.91.229.3 (22 Feb 2016 18:26:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2016 18:26:33 +0000 (UTC) Cc: 22772@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 22 19:26:18 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 1aXvBY-0004aF-Lt for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Feb 2016 19:26:16 +0100 Original-Received: from localhost ([::1]:51113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXvBT-0005Cp-3x for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Feb 2016 13:26:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXvBN-0005C4-RI for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 13:26:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXvBK-0001no-IP for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 13:26:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXvBK-0001nh-E4 for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 13:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aXvBK-00017E-8i for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 13:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Welsh Duggan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Feb 2016 18:26:02 +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.14561655414258 (code B ref 22772); Mon, 22 Feb 2016 18:26:02 +0000 Original-Received: (at 22772) by debbugs.gnu.org; 22 Feb 2016 18:25:41 +0000 Original-Received: from localhost ([127.0.0.1]:38403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXvAy-00016b-T2 for submit@debbugs.gnu.org; Mon, 22 Feb 2016 13:25:41 -0500 Original-Received: from euclid.red.cert.org ([192.88.209.48]:38997) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXvAx-00016Q-Qa for 22772@debbugs.gnu.org; Mon, 22 Feb 2016 13:25:40 -0500 Original-Received: from bucknell.indigo.cert.org (bucknell.indigo.cert.org [10.60.10.121]) by euclid.red.cert.org (8.14.4/8.14.4) with ESMTP id u1MIPYCS030152; Mon, 22 Feb 2016 13:25:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cert.org; s=jthatj15xw2j; t=1456165534; bh=bXTLgzatec7M4NL8nrYWLOsTZZj1Z99IP0yJlozBfv4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type:Sender:Reply-To; b=Yzn3I51zgjrnrVmTwjf0IqHp1uJfpwbBwNpCWTka9UqBwioRaw7jsa7ijaK/pblKz 3cqo7ZLFLeIAk/klxCMsRrbDWh77c83LdRs7BL669srWAI+YObTSb3q/NH8XKAk6PY z/dZo0Hv2PxBAgonQJZB70QgOF+06DeOn8is8jus= Original-Received: from watermonitor.yellow.cert.org (watermonitor.yellow.cert.org [10.20.11.220]) by bucknell.indigo.cert.org (8.14.4/8.14.4/2.81) with ESMTP id u1MIPYxq000402; Mon, 22 Feb 2016 13:25:34 -0500 Original-Received: from watermonitor.yellow.cert.org (localhost [127.0.0.1]) by watermonitor.yellow.cert.org (8.14.4/8.14.4) with ESMTP id u1MIPY0B002178; Mon, 22 Feb 2016 13:25:34 -0500 Original-Received: (from mwd@localhost) by watermonitor.yellow.cert.org (8.14.4/8.14.4) id u1MIPXCL002175; Mon, 22 Feb 2016 13:25:33 -0500 X-Authentication-Warning: watermonitor.yellow.cert.org: mwd set sender to mwd@cert.org using -f In-Reply-To: <8360xgljdv.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 22 Feb 2016 19:55:40 +0200") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.91 (gnu/linux) 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:113481 Archived-At: Eli Zaretskii writes: >> 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. You have a good point. I haven't tried that in some years. I will give the MI version a go. >> 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. Using M-x gdb on a two binaries in separate directories with the same name still ends up with: gud-common-init: This program is already being debugged -- Michael Welsh Duggan (mwd@cert.org)