[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22772: 25.0.91; Can't run gud-gdb on two instances of the same progr
From: |
Michael Welsh Duggan |
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 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.91 (gnu/linux) |
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)