From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: LemonBreezes Newsgroups: gmane.emacs.bugs Subject: bug#64914: [PATCH] * gdb-mi.el: allow disabling the gdb io buffer Date: Fri, 28 Jul 2023 10:54:02 -0400 Message-ID: <65da37ba-9f1e-4f42-8a27-2f7b0f60c700@app.fastmail.com> References: <83mszgjnf7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=1dae4124516f441cb5fd2076ad255e04 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17694"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.9.0-alpha0-592-ga9d4a09b4b-fm-defalarms-20230725.001-ga9d4a09b Cc: 64914@debbugs.gnu.org To: "Eli Zaretskii" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 28 17:49:53 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qPPiu-0004Ig-So for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Jul 2023 17:49:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPPaS-00007v-K3; Fri, 28 Jul 2023 11:41:04 -0400 Original-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 ) id 1qPPaQ-000061-RR for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 11:41:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qPPaQ-0001QX-JX for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 11:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qPPaQ-00073L-Cr for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 11:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: LemonBreezes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Jul 2023 15:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64914 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 64914-submit@debbugs.gnu.org id=B64914.169055885127081 (code B ref 64914); Fri, 28 Jul 2023 15:41:02 +0000 Original-Received: (at 64914) by debbugs.gnu.org; 28 Jul 2023 15:40:51 +0000 Original-Received: from localhost ([127.0.0.1]:45892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPPaF-00072d-2s for submit@debbugs.gnu.org; Fri, 28 Jul 2023 11:40:51 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:50125) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPOrN-0005zF-2j for 64914@debbugs.gnu.org; Fri, 28 Jul 2023 10:54:29 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 0019A5C01A9; Fri, 28 Jul 2023 10:54:23 -0400 (EDT) Original-Received: from imap47 ([10.202.2.97]) by compute3.internal (MEProxy); Fri, 28 Jul 2023 10:54:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= strawberrytea.xyz; h=cc:cc:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1690556063; x=1690642463; bh=mqnk+Yg09sgnmIKah/4ThFtniITnfk66EBM gS2+yGv8=; b=EfBG6j5owTEn7+mqlT9YnWZrpv59f12kcfVxixNoQ8532x4gNQW QRyBfolfH5yzrpdPeEzhdZ6WWINvBiHsrHgSDvhqfj9iCe8X00G44NwsjHU0BLqs 3xOeMIcEmIf+w95BmJ2Je8y52rrWciZuFX28MyFEb0RMlV13tRBIQy/a9XJikopU 9fJyOU6KIpG3fgTCGpvS9fnThyw4fm6cocYIqwSEARPpyLtnPawAaDWryMAdBFgw GEkolriv0nH2xsE4B70yHlosVjgPB7a7MmrmvtkGrWHDNWzz1kBZSksNb/KDllC1 Zl+HlgrGGSJxie4mzAQT8udvUwRpIsVH64g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1690556063; x=1690642463; bh=mqnk+Yg09sgnm IKah/4ThFtniITnfk66EBMgS2+yGv8=; b=TYycqCGSf8tsikHHxUzwx/lNQ6HT7 Z/HwfaKrdkvaLB/YgvjZPT6T3mJNE6nqbLz8nZubbSTwgG303yZg2/l/JpwTNwdC 0ZRBWkxSjajqZkv3NXxVjQ5fzNqOQ1hnVwPbx8YD0YpExaTokjR1449HeOzjBQxI WizGEFTTCAx8xGpUbDyaMuB8QhwILa80NVDCeoQgaigc6+jirZEJBMbR+IymII15 zfSvKHeQPEO3szFGCUeJBo7o4y+ywaTsWW+GQgZ6FIlPwzDRTV5oTV1UxFbi/XfA acytcfULKgsxHiE1xzwnB7JIFbUODpYlVnz+XB63hD0G7O3jfkMfPypqA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrieeigdejlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepofgfggfkjghffffhvfevufgtsegrtderreer redtnecuhfhrohhmpefnvghmohhnuehrvggviigvshcuoehlohhokhesshhtrhgrfigsvg hrrhihthgvrgdrgiihiieqnecuggftrfgrthhtvghrnhepveekfeeifefgfefhfefftdei jefhleeitdefveekueevteejieeihefhgeekffeinecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomheplhhoohhksehsthhrrgifsggvrhhrhihtvggr rdighiii X-ME-Proxy: Feedback-ID: id85149b6:Fastmail Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 729BAA60077; Fri, 28 Jul 2023 10:54:22 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <83mszgjnf7.fsf@gnu.org> X-Mailman-Approved-At: Fri, 28 Jul 2023 11:40:47 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266286 Archived-At: --1dae4124516f441cb5fd2076ad255e04 Content-Type: text/plain No, setting gdb-display-io-nopopup to nil does not prevent the program IO from being split off into the gdb-inferior-io buffer, nor does it prevent the gdb-inferior-io buffer from popping up when debugging is started. The purpose of setting gdb-display-io-buffer to nil is to prevent the gdb-inferior-io buffer from being created altogether, instead outputting the program output to the GDB buffer itself. A user in the Doom Emacs Discord told me this used to be the behavior of gdb-mi.el but that it was changed without giving the user the option to opt out. I have not investigated that but the comments say that is a feature of GDB 6.4 onward. On Fri, Jul 28, 2023, at 7:17 AM, Eli Zaretskii wrote: > > From: StrawberryTea > > Date: Thu, 27 Jul 2023 20:33:39 -0400 > > > > This change allows the user to disable the `gdb-inferior-io' buffer. > > This is useful for users that prefer a more classical gdb experience > > where you just have the GDB window and the source window. > > Sorry, I don't think I understand why you need a new defcustom. > Doesn't setting gdb-display-io-nopopup non-nil already achieve what > you want? It does here. > > Thanks. > --1dae4124516f441cb5fd2076ad255e04 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
No, setting gdb= -display-io-nopopup to nil does not prevent the program IO from being sp= lit off into the gdb-inferior-io buffer, nor does it prevent the&nb= sp;gdb-inferior-io buffer from popping up when debugging is started. The= purpose of setting gdb-display-io-buffer to nil is to prevent the = gdb-inferior-io buffer from being created altogether, instead outputting= the program output to the GDB buffer itself. A user in the Doom Emacs D= iscord told me this used to be the behavior of gdb-mi.el but that it was= changed without giving the user the option to opt out. I have not inves= tigated that but the comments say that is a feature of GDB 6.4 onward.

On Fri, Jul 28, 2023, at 7:17 AM, Eli Zaretskii = wrote:
>= From: StrawberryTea <look@= strawberrytea.xyz>
> Date: Thu, 27 Jul 2023 20:3= 3:39 -0400

> This change allow= s the user to disable the `gdb-inferior-io' buffer.
> T= his is useful for users that prefer a more classical gdb experience
<= /div>
> where you just have the GDB window and the source window.=

Sorry, I don't think I understand why you = need a new defcustom.
Doesn't setting gdb-display-io-nopop= up non-nil already achieve what
you want?  It does he= re.

Thanks.


--1dae4124516f441cb5fd2076ad255e04--