all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Michael Welsh Duggan <mwd@cert.org>
Cc: 22772@debbugs.gnu.org
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	[thread overview]
Message-ID: <8360xgljdv.fsf@gnu.org> (raw)
In-Reply-To: <tntmvqs7ijz.fsf@watermonitor.yellow.cert.org> (message from Michael Welsh Duggan on Mon, 22 Feb 2016 12:37:20 -0500)

> From: Michael Welsh Duggan <mwd@cert.org>
> 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.





  reply	other threads:[~2016-02-22 17:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-22 17:37 bug#22772: 25.0.91; Can't run gud-gdb on two instances of the same program Michael Welsh Duggan
2016-02-22 17:55 ` Eli Zaretskii [this message]
2016-02-22 18:25   ` Michael Welsh Duggan
2016-02-22 19:27     ` Eli Zaretskii
2016-02-22 19:31       ` Michael Welsh Duggan
2021-09-03 10:44 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8360xgljdv.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=22772@debbugs.gnu.org \
    --cc=mwd@cert.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.