GNU bug report logs - #70573
30.0.50; Setting gud-gud-lldb-command-name does not take effect

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Gerd Möllmann <gerd.moellmann@HIDDEN>; Done: Gerd Möllmann <gerd.moellmann@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug marked as fixed in version 30.1, send any further explanations to 70573 <at> debbugs.gnu.org and Gerd Möllmann <gerd.moellmann@HIDDEN> Request was from Gerd Möllmann <gerd.moellmann@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 70573 <at> debbugs.gnu.org:


Received: (at 70573) by debbugs.gnu.org; 26 Apr 2024 10:31:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 26 06:31:23 2024
Received: from localhost ([127.0.0.1]:34035 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s0IrS-0005hm-JU
	for submit <at> debbugs.gnu.org; Fri, 26 Apr 2024 06:31:23 -0400
Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]:45516)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1s0IrC-0005dJ-Eu
 for 70573 <at> debbugs.gnu.org; Fri, 26 Apr 2024 06:31:20 -0400
Received: by mail-ej1-x630.google.com with SMTP id
 a640c23a62f3a-a5883518135so228066566b.3
 for <70573 <at> debbugs.gnu.org>; Fri, 26 Apr 2024 03:30:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1714127442; x=1714732242; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=tawqkgeBmlQtheBifB4C06RN7ldkVTqCoZp4/N4gCJQ=;
 b=IWNq2gauM++x9ADBFsJjBca9BgTE5KW+t4F9Ynj+BoGASKZyj5NOTqMuWo7U3Z/l71
 5UGHTGbHIeeJBiOFtHC51f2wQEyK6j2ys6gcuStFvh5QebIwR0RFkgAD+SNKlxPi6ozG
 KR2H0ymIqR2q9z0eCcY3VIWSwV9ufaO9CDQ/gio8zljyjUbu2gAl9oX1pMJTT0FGKGoN
 /IX49IE7PCqu6ne7ktFKUeLkOcqiNDUhJyXSCSttL8WypCzS/0pgdoLos2FFy6CSohhb
 k674FjHF4rA54ttn2TeIaN9UogYa926SYcrmOCKPJu2H87FrmNuLWHUID+4i9+HNE7GY
 da6g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1714127442; x=1714732242;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=tawqkgeBmlQtheBifB4C06RN7ldkVTqCoZp4/N4gCJQ=;
 b=lEhDUM8o/E3yKj/dAPBNufwx5XyIGv0dedzAjRN2T3fbXeraSyBUcBfwJT3M4HOpXP
 GVtn9uXZ9fEK3/9XjZ6xPYK51mXQf3p6BaSSUFhF/yz89yJOWu4h2QwAgL8kU6e8A6Lj
 CHB5X48Ikk6I3wbnxvOWbnLzvq5I0uARiGRs+RQggM3G1HFHv6+QGp8wZ9FtulDW3i2E
 tEK2PqwZF0kwLW0Mh3cdzOMvO0EheDFHrn0AvT0tXyJ4HT2pQSUQStV82rZPKzwnmjDZ
 xEr4u6Cn05EcrPEqwPkaagiD+nFsPHTQSVTBD98CZcB3oNlG3dWF6hrTleVRyCNFLukA
 dNsA==
X-Gm-Message-State: AOJu0Yxs69BU1wSJMsj4Cr6cqKKMLJl8SsT4HijV/AeXJ9jUQe7u8tuP
 /hlWSQ2SMbPsxX8RIopKAZxTy1bGIs2tTL82RBvZ26T2d3/+fVTt0GHZ5Q==
X-Google-Smtp-Source: AGHT+IHhfz+uqYvAaOEfJw9K+zzRqN8xa8B4DDzUMwiLAhsBVg13OFPu+Q8/5tNeU3OsB/GfFL3ztg==
X-Received: by 2002:a17:906:f748:b0:a55:b021:c0b1 with SMTP id
 jp8-20020a170906f74800b00a55b021c0b1mr2121041ejb.9.1714127441674; 
 Fri, 26 Apr 2024 03:30:41 -0700 (PDT)
Received: from pro2.fritz.box (p4fe3a4eb.dip0.t-ipconnect.de. [79.227.164.235])
 by smtp.gmail.com with ESMTPSA id
 q21-20020a170906771500b00a51d408d446sm10482652ejm.26.2024.04.26.03.30.41
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 26 Apr 2024 03:30:41 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#70573: 30.0.50; Setting gud-gud-lldb-command-name does not
 take effect
In-Reply-To: <m2v844oc84.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?=
 =?utf-8?Q?n=22's?= message of "Fri, 26 Apr 2024 08:43:39 +0200")
References: <m2msphpbr7.fsf@HIDDEN> <86ttjpz2p9.fsf@HIDDEN>
 <m24jbpp7lv.fsf@HIDDEN> <86pluczlfi.fsf@HIDDEN>
 <m2v844oc84.fsf@HIDDEN>
Date: Fri, 26 Apr 2024 12:30:40 +0200
Message-ID: <m2ttjomn5b.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70573
Cc: 70573 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> Eli Zaretskii <eliz@HIDDEN> writes:
>
>>> Would you agree that the interactive form should use gud-lldb, but that
>>> the setq-local is right? The setq-local is gud-gdb uses gdb, not
>>> gud-gdb. Or am I confusing myself here?
>>
>> I think both should use gud-lldb, at least that's my understanding.
>> Look at gud-query-cmdline, gud-val, and gud-symbol, and you will see
>> that they encode the command name as gud-MINORMODE-SYMBOL, where
>> SYMBOL is "command-name" in this case.  So if the command name's
>> symbol is gud-gud-lldb-command-name, then MINORMODE must be gud-lldb,
>> for this stuff to work.
>
> Thanks. I'll try to come up with something later today.

Pushed a fix to master, and closing. I forgot to add the bug# to the
commit message, though, sorry.

What a wonderful confusion of mine :-/.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70573; Package emacs. Full text available.

Message received at 70573 <at> debbugs.gnu.org:


Received: (at 70573) by debbugs.gnu.org; 26 Apr 2024 06:44:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 26 02:44:09 2024
Received: from localhost ([127.0.0.1]:33644 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s0FJZ-00072H-46
	for submit <at> debbugs.gnu.org; Fri, 26 Apr 2024 02:44:09 -0400
Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:45062)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1s0FJV-00070D-OU
 for 70573 <at> debbugs.gnu.org; Fri, 26 Apr 2024 02:44:07 -0400
Received: by mail-ed1-x52e.google.com with SMTP id
 4fb4d7f45d1cf-57255e89facso299639a12.2
 for <70573 <at> debbugs.gnu.org>; Thu, 25 Apr 2024 23:43:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1714113821; x=1714718621; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=QA+kFLjbGzQQVfERopRWpUmfiOEb8hl5jahkUQKwx7E=;
 b=hyJBOY11+Tm6D4BlKAwGGIF3rI3zkuesXuVmYf1GPkJoYKZ64vGH91TUx4/WR36mGg
 RThj6umUzFRG3E90sjEf36EgfDkdtDh25OHtO7kWoVV4msH2yL1wVo7RS+LeLbyFJjgn
 Xk6NsqBc+G1Ig9Fpwq0rLa54HxXSL7QgA/NA/z6v/bTUhlHLqMGyT+8fpkjCx5tYo1f5
 t58SWiEdRfRiL2Zc4MUG6wW5+tQ5PoguZu+MjJTsw3S327SKMKdMkYboXrhqOyI5C9Pk
 QCJhFlGs4tVzCddfHboPAvztUCSE8RybrbW8QHkFt0BkoWpmkhZhCCl8AE555zOVoBS8
 T2ug==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1714113821; x=1714718621;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=QA+kFLjbGzQQVfERopRWpUmfiOEb8hl5jahkUQKwx7E=;
 b=Rx2P06q4l2Mw4Oz0OLKd1XdBQ4Eir2NxNIrUXbLP9OBI2z/e44fpR5avF2uC3oQ/rO
 wibjcYPLn5i9KNhyiD5e3Nf8QH0/sSwUNHNxx3+ihcIDs0oxI2dn1q3dwgWJxTf3IOq3
 0pUqny6txjuKsblU/mDF9n4WjuNg5/Kz3QHLtV9Yoq3XcJbmGl9Ic2ndBJZovho9ngAP
 vHX0+WA3gLfD/ozrhZFTYi3BxAEtSBSayZ3IFHkcriW08xl4B3+hQJTwLG4lxmh+2jUo
 ++k1ziq7cP+E9r4ku/4FpZrT2pmj0wuceFZ5j0gvdOkglMYFzP0FUck2fMHqu5KUzl5j
 NUXg==
X-Gm-Message-State: AOJu0YyvwhjE33v6Qe/CAAVTaXxsyK7YUnDisYcA9zFh/pX0BIcT0iIk
 9COGb4NAZN5gYw/c4hxdmqXwfwKNFEFp1SXGu41N/01SerGdSBJhRqPUvA==
X-Google-Smtp-Source: AGHT+IEO/KyO/nP9qXmRvJ3iAsuLWUbC10SW58SFI0sf5ErXiWPnW6QOrgE/KqIIBZ/BzBX4zdINWA==
X-Received: by 2002:a50:cd15:0:b0:56e:2452:f867 with SMTP id
 z21-20020a50cd15000000b0056e2452f867mr1237539edi.37.1714113821139; 
 Thu, 25 Apr 2024 23:43:41 -0700 (PDT)
Received: from pro2.fritz.box (p4fe3a4eb.dip0.t-ipconnect.de. [79.227.164.235])
 by smtp.gmail.com with ESMTPSA id
 c4-20020a056402100400b005720caa01easm5243626edu.69.2024.04.25.23.43.40
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 25 Apr 2024 23:43:40 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#70573: 30.0.50; Setting gud-gud-lldb-command-name does not
 take effect
In-Reply-To: <86pluczlfi.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 26 Apr
 2024 09:29:21 +0300")
References: <m2msphpbr7.fsf@HIDDEN> <86ttjpz2p9.fsf@HIDDEN>
 <m24jbpp7lv.fsf@HIDDEN> <86pluczlfi.fsf@HIDDEN>
Date: Fri, 26 Apr 2024 08:43:39 +0200
Message-ID: <m2v844oc84.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70573
Cc: 70573 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> Would you agree that the interactive form should use gud-lldb, but that
>> the setq-local is right? The setq-local is gud-gdb uses gdb, not
>> gud-gdb. Or am I confusing myself here?
>
> I think both should use gud-lldb, at least that's my understanding.
> Look at gud-query-cmdline, gud-val, and gud-symbol, and you will see
> that they encode the command name as gud-MINORMODE-SYMBOL, where
> SYMBOL is "command-name" in this case.  So if the command name's
> symbol is gud-gud-lldb-command-name, then MINORMODE must be gud-lldb,
> for this stuff to work.

Thanks. I'll try to come up with something later today.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70573; Package emacs. Full text available.

Message received at 70573 <at> debbugs.gnu.org:


Received: (at 70573) by debbugs.gnu.org; 26 Apr 2024 06:29:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 26 02:29:54 2024
Received: from localhost ([127.0.0.1]:33639 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s0F5k-0004Jj-5i
	for submit <at> debbugs.gnu.org; Fri, 26 Apr 2024 02:29:54 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:50816)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1s0F5h-0004Iv-Bv
 for 70573 <at> debbugs.gnu.org; Fri, 26 Apr 2024 02:29:51 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1s0F5J-0008Us-M7; Fri, 26 Apr 2024 02:29:25 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=wll9WaFzbJUBRu/JEnRWYRfmMvfa6SSx0vm3W3/8kPA=; b=PrfY7nnxcE2unCFt+Gg1
 ctxKEGcafIILvN+gGhPOCzQL268JLl+ob3Qtwl2BTEoBaqxEAwctoluhfniVluxQOzxfciYqq+ov0
 C8tifgrqr+sfhIeNWdIwonJvi/u0mxFAmy1GgTOhWejK/YYn56qe6/eBY7eOp6WSDDiMDj7m5djpK
 3awk3e92qjDN5nasR4sfr689xkiDTe3nkwTlRNx61gveWAEwgp72/Wu6lS3S5Z5IKtz7vPQ4sUHE8
 XPZ0TYIbakUKcSQgs1AtB0fEp90uBPTGKN5Intc8IqVxZ1IHt8s9kvcEiFgVYPfCBfnuJn5ywuEbd
 l6Dc2lr8l42IaQ==;
Date: Fri, 26 Apr 2024 09:29:21 +0300
Message-Id: <86pluczlfi.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
In-Reply-To: <m24jbpp7lv.fsf@HIDDEN> (message from Gerd
 =?utf-8?Q?M=C3=B6llmann?= on Thu, 25 Apr 2024 21:25:48 +0200)
Subject: Re: bug#70573: 30.0.50; Setting gud-gud-lldb-command-name does not
 take effect
References: <m2msphpbr7.fsf@HIDDEN> <86ttjpz2p9.fsf@HIDDEN>
 <m24jbpp7lv.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 70573
Cc: 70573 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Gerd Möllmann <gerd.moellmann@HIDDEN>
> Cc: 70573 <at> debbugs.gnu.org
> Date: Thu, 25 Apr 2024 21:25:48 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > It looks like this part:
> >
> >   (interactive (list (gud-query-cmdline 'lldb)))
> >
> > is the culprit: the minor-mode, which is the argument to
> > gud-query-cmdline, should be 'gud-lldb, not 'lldb.  Here's my
> > evidence:
> >
> >   (when (and gud-comint-buffer
> > 	     (buffer-name gud-comint-buffer)
> > 	     (get-buffer-process gud-comint-buffer)
> > 	     (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gud-lldb)))
> >
> > Btw, this line seems also to be confused wrt the name of
> > gud-minor-mode:
> >
> >   (setq-local gud-minor-mode 'lldb)
> 
> I'm currently seriously confused by gud.el, I'm afraid. And I was
> already confused when I tried to mimic gud-gdb here, which does
> 
>   (interactive (list (gud-query-cmdline 'gud-gdb)))
> 
>   (when (and gud-comint-buffer
> 	   (buffer-name gud-comint-buffer)
> 	   (get-buffer-process gud-comint-buffer)
> 	   (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdbmi)))
>     (gdb-restore-windows)
>     (error
>      "Multiple debugging requires restarting in text command mode"))
> 
>   (gud-common-init command-line nil 'gud-gdb-marker-filter)
>   (setq-local gud-minor-mode 'gdb)

I don't think the complications of GDB should concern you.  AFAIU, the
above tries to handle the tricky situation where we have 2 GDB minor
modes: gdbmi and gud-gdb.  There's no such problem with LLDB, AFAIU.

So I think you should copy-cat the other minor modes, like gud-pdb,
which don't have these complications.

> Would you agree that the interactive form should use gud-lldb, but that
> the setq-local is right? The setq-local is gud-gdb uses gdb, not
> gud-gdb. Or am I confusing myself here?

I think both should use gud-lldb, at least that's my understanding.
Look at gud-query-cmdline, gud-val, and gud-symbol, and you will see
that they encode the command name as gud-MINORMODE-SYMBOL, where
SYMBOL is "command-name" in this case.  So if the command name's
symbol is gud-gud-lldb-command-name, then MINORMODE must be gud-lldb,
for this stuff to work.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70573; Package emacs. Full text available.

Message received at 70573 <at> debbugs.gnu.org:


Received: (at 70573) by debbugs.gnu.org; 25 Apr 2024 19:26:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 25 15:26:32 2024
Received: from localhost ([127.0.0.1]:33283 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s04ji-00037u-Pn
	for submit <at> debbugs.gnu.org; Thu, 25 Apr 2024 15:26:32 -0400
Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:45427)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1s04jW-00034Y-8j
 for 70573 <at> debbugs.gnu.org; Thu, 25 Apr 2024 15:26:22 -0400
Received: by mail-ed1-x532.google.com with SMTP id
 4fb4d7f45d1cf-56e1f3462caso1909892a12.3
 for <70573 <at> debbugs.gnu.org>; Thu, 25 Apr 2024 12:25:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1714073150; x=1714677950; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=BwjbUCki0MMnE3VHRy27kxrlKU/KS1p/Q0gqxsx3484=;
 b=BcYLAc+g+MTL4zilq/ptflVp5jx/2dfVZqQ9wZ1UlLpozIPK+/RI47moQ6kNsCjpcp
 NncWw6h9+NsbsB1veAOTLy2OfwEQOzr7aP0oFSm/ikTq9byMTrvedeKae8Zsbj2HHrDT
 /E3joLxQMVm3uGnH7pflzJyByW1nMv+s7oqKXYcorcEQE/elmxKzE/w+3Fi+kToPkd53
 WemNGDGWM6523RYPbJgp0xcoJtP06cEAWAF5+tGZTMQhIlKRTo3Fj7rw8rnKKoLvAQBT
 piot3dGbmrg98zw1Az3SgyDHla6pBkVvAcTbJG5PsD4YptlxBiaFZl4nVpDfQoBaI/Yf
 ztcw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1714073150; x=1714677950;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=BwjbUCki0MMnE3VHRy27kxrlKU/KS1p/Q0gqxsx3484=;
 b=DDQhjAQy1yZVlEOtdQ8IARYR39VBqsgPqjayew9M/XjJzPlgmLjiyYPAth5IREGME6
 5DRFCwQmFRlxgdnu73UBNNiDA3JXQ0YqJE4+Z2+OhqkA93CmuLa++zu6k4nmOekqgGQd
 +UUAe6JF38pZRNqZQWadky5dKKzrZRMiFNpvYsArZ1SJ+LKqdrsd7IVeMOBtQzZm4QUj
 jQF5E8lFUaw/zQr4nPvSzukmMLXyuUDL6lVYLpVYVG1Eqx8iO/Xn+zpoOmDo270D0H6N
 C7pYALMzegxwIKjt8999I3roN1qHkkzSRccanMkbUUOSQp31Ih63AlN+0TAYpRpXZGpw
 A12A==
X-Gm-Message-State: AOJu0YwlVYEAPI+NBG1s/jb9IlLjjOo4WA/FUONH2qtrOQspi5wBs5ln
 KRYjlWVPLkg2fAF18vbJ8X2Uff39gilzDDYLxAjw4shv3CJU4sBoLmtSJQ==
X-Google-Smtp-Source: AGHT+IH6mFDnBpjt0lvDYRkqJ9H0EFTP1OpkDth/j42fnVmC0XY9jcYccHQSPZffM7RtKAKk4wMZlA==
X-Received: by 2002:a05:6402:26c1:b0:572:5285:6dc2 with SMTP id
 x1-20020a05640226c100b0057252856dc2mr211756edd.12.1714073149702; 
 Thu, 25 Apr 2024 12:25:49 -0700 (PDT)
Received: from pro2.fritz.box (p4fe3a1c7.dip0.t-ipconnect.de. [79.227.161.199])
 by smtp.gmail.com with ESMTPSA id
 fe3-20020a056402390300b00572326cbe79sm1963272edb.61.2024.04.25.12.25.49
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 25 Apr 2024 12:25:49 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#70573: 30.0.50; Setting gud-gud-lldb-command-name does not
 take effect
In-Reply-To: <86ttjpz2p9.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 25 Apr
 2024 22:01:38 +0300")
References: <m2msphpbr7.fsf@HIDDEN> <86ttjpz2p9.fsf@HIDDEN>
Date: Thu, 25 Apr 2024 21:25:48 +0200
Message-ID: <m24jbpp7lv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70573
Cc: 70573 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN>
>> Date: Thu, 25 Apr 2024 19:56:12 +0200
>>=20
>>=20
>> 1. emacs -Q
>> 2. (setq gud-gud-lldb-command-name "hansi")
>> 3. M-x lldb RET
>>=20
>> The new command name "hansi" is not used when prompting the user.
>
> It looks like this part:
>
>   (interactive (list (gud-query-cmdline 'lldb)))
>
> is the culprit: the minor-mode, which is the argument to
> gud-query-cmdline, should be 'gud-lldb, not 'lldb.  Here's my
> evidence:
>
>   (when (and gud-comint-buffer
> 	     (buffer-name gud-comint-buffer)
> 	     (get-buffer-process gud-comint-buffer)
> 	     (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gud-lldb=
)))
>
> Btw, this line seems also to be confused wrt the name of
> gud-minor-mode:
>
>   (setq-local gud-minor-mode 'lldb)

I'm currently seriously confused by gud.el, I'm afraid. And I was
already confused when I tried to mimic gud-gdb here, which does

  (interactive (list (gud-query-cmdline 'gud-gdb)))

  (when (and gud-comint-buffer
	   (buffer-name gud-comint-buffer)
	   (get-buffer-process gud-comint-buffer)
	   (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdbmi)))
    (gdb-restore-windows)
    (error
     "Multiple debugging requires restarting in text command mode"))

  (gud-common-init command-line nil 'gud-gdb-marker-filter)
  (setq-local gud-minor-mode 'gdb)

Would you agree that the interactive form should use gud-lldb, but that
the setq-local is right? The setq-local is gud-gdb uses gdb, not
gud-gdb. Or am I confusing myself here?

(Sorry, it's probably too late in the evening for me, or I have compiled
too many LLVM versions today, or whatever.)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70573; Package emacs. Full text available.

Message received at 70573 <at> debbugs.gnu.org:


Received: (at 70573) by debbugs.gnu.org; 25 Apr 2024 19:02:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 25 15:02:31 2024
Received: from localhost ([127.0.0.1]:33272 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s04MS-0007H9-Ub
	for submit <at> debbugs.gnu.org; Thu, 25 Apr 2024 15:02:30 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47126)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1s04MI-0007EE-RH
 for 70573 <at> debbugs.gnu.org; Thu, 25 Apr 2024 15:02:20 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1s04Lv-0004tG-Bk; Thu, 25 Apr 2024 15:01:51 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=0fz+41fLoCpAb8Apsr38g0Ju/nlRgwCeYIJWkRzxuGY=; b=NvHsYzEAGcXxtcJiP5Ub
 KaaUiaSEES2Afe9ScyXClnHW831X8UtSLERCXD6rIFSNE+GOjtuJ5ZNEDi1forKVpyyk28bX47NSl
 9TWuPiSEpygjyM5pfcYVIdjivACXqQh9iOVzvDx7+L2cNv6JcBnB4J5aQlUcAqCNw5WoABDq3Y16p
 y0MkBErOkfgoKJyQJk6BAnln7IdaG/VRVEGjxdJ18o3/xIhLIi3Bse6kAlqAdcxpl46/fzy6P5OZB
 hLawSn3O1UkD5TKzYE9tdv+potuGVC58EHTYzS9fZLNrtHZeKjKosRiXn8Ev9V3AM1MdiwxJid5kI
 tGVYqXOV/7jFxQ==;
Date: Thu, 25 Apr 2024 22:01:38 +0300
Message-Id: <86ttjpz2p9.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
In-Reply-To: <m2msphpbr7.fsf@HIDDEN> (message from Gerd
 =?utf-8?Q?M=C3=B6llmann?= on Thu, 25 Apr 2024 19:56:12 +0200)
Subject: Re: bug#70573: 30.0.50;
 Setting gud-gud-lldb-command-name does not take effect
References: <m2msphpbr7.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 70573
Cc: 70573 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Gerd Möllmann <gerd.moellmann@HIDDEN>
> Date: Thu, 25 Apr 2024 19:56:12 +0200
> 
> 
> 1. emacs -Q
> 2. (setq gud-gud-lldb-command-name "hansi")
> 3. M-x lldb RET
> 
> The new command name "hansi" is not used when prompting the user.

It looks like this part:

  (interactive (list (gud-query-cmdline 'lldb)))

is the culprit: the minor-mode, which is the argument to
gud-query-cmdline, should be 'gud-lldb, not 'lldb.  Here's my
evidence:

  (when (and gud-comint-buffer
	     (buffer-name gud-comint-buffer)
	     (get-buffer-process gud-comint-buffer)
	     (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gud-lldb)))

Btw, this line seems also to be confused wrt the name of
gud-minor-mode:

  (setq-local gud-minor-mode 'lldb)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70573; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Apr 2024 17:57:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 25 13:57:50 2024
Received: from localhost ([127.0.0.1]:33242 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s03Ls-0003u3-2G
	for submit <at> debbugs.gnu.org; Thu, 25 Apr 2024 13:57:49 -0400
Received: from lists.gnu.org ([2001:470:142::17]:60572)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1s03Lj-0003rU-2r
 for submit <at> debbugs.gnu.org; Thu, 25 Apr 2024 13:57:39 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1s03LJ-0005hX-Cx
 for bug-gnu-emacs@HIDDEN; Thu, 25 Apr 2024 13:57:10 -0400
Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1s03KR-0004po-Rx
 for bug-gnu-emacs@HIDDEN; Thu, 25 Apr 2024 13:57:07 -0400
Received: by mail-ej1-x629.google.com with SMTP id
 a640c23a62f3a-a5224dfa9adso245908466b.0
 for <bug-gnu-emacs@HIDDEN>; Thu, 25 Apr 2024 10:56:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1714067774; x=1714672574; darn=gnu.org;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=SG3C0vpVamRt4t4IBl2zof9CPT/iAOtSdtkngJi9Jj4=;
 b=WdIslJzAgKFVQW2CYlW8EIUcyJ2GyF9EabiXzcjlmRqbS6QJnrf+VF7jjCnRG1Vvb4
 AxC3pCoyjeWFyoWjspzy3rI9/bwyVsdPbEOEMYHD9pVuqdDqFAZ1t20o/0NwdNFOmTwu
 Ss58cgQ13uc3rOQf2jJSE/As+TRpTzMKo5DPujjRRLMve/BRVnDslktqgE/BzbXxpp7I
 nUi/beJX5KXMuz3qC5Oeeb8WLRzhJBTyYfOsq/FISYQbZw9OPxjJK17Z35Hpcl1zMFT0
 lTwCj/3Q+sJwNUxFPEvbEYJdN9sfKfPexZByi2thBGz7Vpca0v1tYIqGx7t5tJjKiO8d
 9S0A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1714067774; x=1714672574;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=SG3C0vpVamRt4t4IBl2zof9CPT/iAOtSdtkngJi9Jj4=;
 b=YqHcJudmu79DKIGSCQB8you9loQoWT9f/vTvhSPpakRrgWLecZckRHNvy3JQnQcpcX
 I2CM8dtWFH0MiRqwE3BDZXxaMak/kVA4pB+sBPX/bDMDOA9HB5YTm+8De/Au7kbE7ObC
 1idTP8iKeObrLN3uKupyUM8vu+v1lns/vWuTcUu//8TDw5VGP97VTs3pdD7t4wEZncLN
 EyTXXclZYCq/ZG4W/Ij8zepsBglyyYDAYAUv4EzHWc5sH3eXWu1kmbWKtEqMmvW/Hv2P
 TQJspDUhAyRBQB46Z8SojPX8PhjucuqOxGurM4hKx9i95sD82o3sThhmR8cceL86kF7p
 KAMA==
X-Gm-Message-State: AOJu0YzJ+tEK8a3/m1fOYaRKzwMlABnDIuD+fs2O0UiJ7w9e/UECI2zh
 Txcgcf1m8M2tYOA5t9muxifui+2uKT7coji/8OlWibJCVl0e10blBVih8g==
X-Google-Smtp-Source: AGHT+IG21kl3koFyxckdKmNXk8i2w/HOnYvWiuW/stJUunS3S1cd/1XvnFIekkNizfz1N9GodVdqJg==
X-Received: by 2002:a17:906:3743:b0:a58:7ddf:1805 with SMTP id
 e3-20020a170906374300b00a587ddf1805mr3513429ejc.7.1714067773996; 
 Thu, 25 Apr 2024 10:56:13 -0700 (PDT)
Received: from pro2.fritz.box (p4fe3a1c7.dip0.t-ipconnect.de. [79.227.161.199])
 by smtp.gmail.com with ESMTPSA id
 og19-20020a1709071dd300b00a58bef9e471sm533345ejc.111.2024.04.25.10.56.13
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 25 Apr 2024 10:56:13 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.0.50; Setting gud-gud-lldb-command-name does not take effect
X-Debbugs-Cc: 
Date: Thu, 25 Apr 2024 19:56:12 +0200
Message-ID: <m2msphpbr7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a00:1450:4864:20::629;
 envelope-from=gerd.moellmann@HIDDEN; helo=mail-ej1-x629.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)


1. emacs -Q
2. (setq gud-gud-lldb-command-name "hansi")
3. M-x lldb RET

The new command name "hansi" is not used when prompting the user.

In GNU Emacs 30.0.50 (build 1, aarch64-apple-darwin23.4.0, NS
 appkit-2487.50 Version 14.4.1 (Build 23E224)) of 2024-04-23 built on
 pro2.fritz.box




Acknowledgement sent to Gerd Möllmann <gerd.moellmann@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#70573; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 26 Apr 2024 10:45:09 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.