GNU bug report logs -
#22772
25.0.91; Can't run gud-gdb on two instances of the same program
Previous Next
Reported by: Michael Welsh Duggan <mwd <at> cert.org>
Date: Mon, 22 Feb 2016 17:38:02 UTC
Severity: minor
Found in version 25.0.91
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 22772 <at> debbugs.gnu.org (full text, mbox):
> From: Michael Welsh Duggan <mwd <at> 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.
This bug report was last modified 3 years and 267 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.