all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Welsh Duggan <mwd@cert.org>
To: Eli Zaretskii <eliz@gnu.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 13:25:33 -0500	[thread overview]
Message-ID: <tntio1g7gbm.fsf@watermonitor.yellow.cert.org> (raw)
In-Reply-To: <8360xgljdv.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 22 Feb 2016 19:55:40 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

>> 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.

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)





  reply	other threads:[~2016-02-22 18:25 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
2016-02-22 18:25   ` Michael Welsh Duggan [this message]
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=tntio1g7gbm.fsf@watermonitor.yellow.cert.org \
    --to=mwd@cert.org \
    --cc=22772@debbugs.gnu.org \
    --cc=eliz@gnu.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.